All of lore.kernel.org
 help / color / mirror / Atom feed
From: matthieu castet <castet.matthieu-GANU6spQydw@public.gmane.org>
To: Linux Kernel list
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: [PATCH] PNPACPI : don't use device not present
Date: Fri, 04 Feb 2005 18:28:21 +0100	[thread overview]
Message-ID: <4203B0B5.4080204@free.fr> (raw)

[-- 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");

WARNING: multiple messages have this Message-ID (diff)
From: matthieu castet <castet.matthieu@free.fr>
To: Linux Kernel list <linux-kernel@vger.kernel.org>,
	acpi-devel@lists.sourceforge.net
Cc: Len Brown <len.brown@intel.com>
Subject: [PATCH] PNPACPI : don't use device not present
Date: Fri, 04 Feb 2005 18:28:21 +0100	[thread overview]
Message-ID: <4203B0B5.4080204@free.fr> (raw)

[-- 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");

             reply	other threads:[~2005-02-04 17:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-04 17:28 matthieu castet [this message]
2005-02-04 17:28 ` [PATCH] PNPACPI : don't use device not present matthieu castet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4203B0B5.4080204@free.fr \
    --to=castet.matthieu-ganu6spqydw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.