* [PATCH] PNPACPI : don't use device not present
@ 2005-02-04 17:28 ` matthieu castet
0 siblings, 0 replies; 2+ messages in thread
From: matthieu castet @ 2005-02-04 17:28 UTC (permalink / raw)
To: Linux Kernel list, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Len Brown
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
Hi,
this patch avoid the pnpacpi layer reconized not present device.
There is still issue [1] with the ACPI code that need to fix in order
everything work correctly...
Matthieu CASTET
[1] http://bugzilla.kernel.org/show_bug.cgi?id=3358
[-- Attachment #2: pnpacpi_spec.patch --]
[-- Type: text/x-patch, Size: 422 bytes --]
--- linux-2.6.9/drivers/pnp/pnpacpi/core.c 2004-11-22 20:35:58.000000000 +0100
+++ linux-2.6.9/drivers/pnp/pnpacpi/core.c 2004-11-26 14:46:54.000000000 +0100
@@ -124,6 +124,10 @@
struct pnp_dev *dev;
pnp_dbg("ACPI device : hid %s", acpi_device_hid(device));
+
+ if(!device->status.present)
+ return -ENODEV;
+
dev = pnpacpi_kmalloc(sizeof(struct pnp_dev), GFP_KERNEL);
if (!dev) {
pnp_err("Out of memory");
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] PNPACPI : don't use device not present
@ 2005-02-04 17:28 ` matthieu castet
0 siblings, 0 replies; 2+ messages in thread
From: matthieu castet @ 2005-02-04 17:28 UTC (permalink / raw)
To: Linux Kernel list, acpi-devel; +Cc: Len Brown
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
Hi,
this patch avoid the pnpacpi layer reconized not present device.
There is still issue [1] with the ACPI code that need to fix in order
everything work correctly...
Matthieu CASTET
[1] http://bugzilla.kernel.org/show_bug.cgi?id=3358
[-- Attachment #2: pnpacpi_spec.patch --]
[-- Type: text/x-patch, Size: 422 bytes --]
--- linux-2.6.9/drivers/pnp/pnpacpi/core.c 2004-11-22 20:35:58.000000000 +0100
+++ linux-2.6.9/drivers/pnp/pnpacpi/core.c 2004-11-26 14:46:54.000000000 +0100
@@ -124,6 +124,10 @@
struct pnp_dev *dev;
pnp_dbg("ACPI device : hid %s", acpi_device_hid(device));
+
+ if(!device->status.present)
+ return -ENODEV;
+
dev = pnpacpi_kmalloc(sizeof(struct pnp_dev), GFP_KERNEL);
if (!dev) {
pnp_err("Out of memory");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-04 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 17:28 [PATCH] PNPACPI : don't use device not present matthieu castet
2005-02-04 17:28 ` matthieu castet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.