]> git.karo-electronics.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:50:35 +0000 (09:50 -0800)
commit63f9bdba0ba2bfb1853a3e5883ec7ac6912b3c09
treef80b3e710c3994a265a3ef75c21b0c012a5b1175
parente5e2130ff639ed7927363c5e7f4a266f3ccded5b
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