]> git.baikalelectronics.ru Git - kernel.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)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Feb 2009 00:58:41 +0000 (16:58 -0800)
commitfc056c1fba3615b26305db27c8617929f8ae8e47
treebc544c64ed8eeb3feb2f0b210ae7db04a40e1bae
parentea1f705c35f740763698e45f4b3ed863d697dccb
PCI: return error on failure to read PCI ROMs

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>
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