]> git.baikalelectronics.ru Git - kernel.git/commit
acpi: fix acpi_os_read_pci_configuration() misuse of raw_pci_read()
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 13 Feb 2008 17:56:14 +0000 (09:56 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 13 Feb 2008 17:56:14 +0000 (09:56 -0800)
commitacebf2c242b890c743dda3e35866c1a12b60e821
treed9bce90a79be42ffd619b65b42e9a699bf0d13a6
parent89e929f49a77c7cf9e2493efc488e2d11d7e48bc
acpi: fix acpi_os_read_pci_configuration() misuse of raw_pci_read()

The raw_pci_read() interface (as the raw_pci_ops->read() before it)
unconditionally fills in a 32-bit integer return value regardless of the
size of the operation requested.

So claiming to take a "void *" is wrong, as is passing in a pointer to
just a byte variable.

Noticed by pageexec when enabling -fstack-protector (which needs other
patches too to actually work, but that's a separate issue).

Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/osl.c
include/acpi/acpiosxf.h