]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: return error on failure to read PCI ROMs
authorTimothy S. Nelson <wayland@wayland.id.au>
Thu, 29 Jan 2009 19:12:47 +0000 (06:12 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:31:10 +0000 (09:31 -0800)
commitae59010c012538c749abc8bf760855a71b014072
tree267f7a9b5225c963ea112329cfac4db09a310409
parentca9e7b96abf17668950e16329b6e6c9233d72653
PCI: return error on failure to read PCI ROMs

commit 97c44836cdec1ea713a15d84098a1a908157e68f upstream.

This patch makes the ROM reading code return an error to user space if
the size of the ROM read is equal to 0.

The patch also emits a warnings if the contents of the ROM are invalid,
and documents the effects of the "enable" file on ROM reading.

Signed-off-by: Timothy S. Nelson <wayland@wayland.id.au>
Acked-by: Alex Villacis-Lasso <a_villacis@palosanto.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/filesystems/sysfs-pci.txt
arch/ia64/sn/kernel/io_acpi_init.c
arch/ia64/sn/kernel/io_init.c
drivers/pci/pci-sysfs.c
drivers/pci/rom.c
include/linux/pci.h