kernel-ark/drivers/pnp
Rafael J. Wysocki b6328a07bd ACPI / PNP: Fix acpi_pnp_match()
The acpi_pnp_match() function is used for finding the ACPI device
object that should be associated with the given PNP device.
Unfortunately, the check used by that function is not strict enough
and may cause success to be returned for a wrong ACPI device object.

To fix that, use the observation that the pointer to the ACPI
device object in question is already stored in the data field
in struct pnp_dev, so acpi_pnp_match() can simply use that
field to do its job.

This problem was uncovered in 3.14 by commit 202317a573 (ACPI / scan:
Add acpi_device objects for all device nodes in the namespace).

Fixes: 202317a573 (ACPI / scan: Add acpi_device objects for all device nodes in the namespace)
Reported-and-tested-by: Vinson Lee <vlee@twopensource.com>
Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-07-30 00:23:09 +02:00
..
isapnp
pnpacpi ACPI / PNP: Fix acpi_pnp_match() 2014-07-30 00:23:09 +02:00
pnpbios asmlinkage: Add explicit __visible to drivers/*, lib/*, kernel/* 2014-05-05 16:07:46 -07:00
base.h
card.c PNP / card: add missing put_device() call 2014-01-05 22:50:06 +01:00
core.c
driver.c PNP: fix restoring devices after hibernation 2013-12-05 02:01:55 +01:00
interface.c
Kconfig
Makefile
manager.c
quirks.c PNP: Fix compile error in quirks.c 2014-04-29 23:31:15 +02:00
resource.c PNP / resources: remove positive test on unsigned values 2014-05-10 13:46:37 +02:00
support.c
system.c