From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
To: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>,
Kristen Carlson Accardi <kristenc@cs.pdx.edu>
Cc: pcihpd-discuss@lists.sourceforge.net, greg@kroah.com,
len.brown@intel.com, pavel@ucw.cz, linux-acpi@vger.kernel.org
Subject: Re: [Pcihpd-discuss] [patch] acpiphp: handle dock stations
Date: Tue, 14 Feb 2006 00:57:38 +0900 [thread overview]
Message-ID: <43F0AC72.8010603@jp.fujitsu.com> (raw)
In-Reply-To: <8764nkf2mq.wl%muneda.takahiro@jp.fujitsu.com>
Hi Kristen, Takahiro,
MUNEDA Takahiro wrote:
>
> I tried 2.6.12-rc2-mm1(includes this patch) on my Tiger box,
> I could not insmod the acpiphp module because of the NaT
> consumption.
>
> My box does not have any _DCK method, so find_dock() returns
> without making any acpiphp_dock_station struct. Therefore,
> NaT consumption has occurred at get_dependent_device().
>
This problem will be fixed by the following patch.
Thanks,
Kenji Kaneshige
The get_dependent_device() function must check if ds is not NULL,
otherwise it will cause kernel panic on the system that has no _DCK
method.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
drivers/pci/hotplug/acpiphp_dock.c | 3 +++
1 files changed, 3 insertions(+)
Index: linux-2.6.16-rc2-mm1/drivers/pci/hotplug/acpiphp_dock.c
===================================================================
--- linux-2.6.16-rc2-mm1.orig/drivers/pci/hotplug/acpiphp_dock.c 2006-02-09 20:03:03.000000000 +0900
+++ linux-2.6.16-rc2-mm1/drivers/pci/hotplug/acpiphp_dock.c 2006-02-14 00:11:15.000000000 +0900
@@ -88,6 +88,9 @@
{
struct dependent_device *dd;
+ if (!ds)
+ return NULL;
+
list_for_each_entry(dd, &ds->dependent_devices, device_list) {
if (handle == dd->handle)
return dd;
next prev parent reply other threads:[~2006-02-13 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-01 23:30 [patch] acpiphp: handle dock stations Kristen Carlson Accardi
2006-02-02 5:09 ` [Pcihpd-discuss] " Kenji Kaneshige
2006-02-06 13:15 ` Pavel Machek
2006-02-06 13:21 ` Pavel Machek
2006-02-13 1:50 ` [Pcihpd-discuss] " MUNEDA Takahiro
2006-02-13 15:57 ` Kenji Kaneshige [this message]
2006-02-14 0:41 ` MUNEDA Takahiro
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=43F0AC72.8010603@jp.fujitsu.com \
--to=kaneshige.kenji@jp.fujitsu.com \
--cc=greg@kroah.com \
--cc=kristenc@cs.pdx.edu \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=muneda.takahiro@jp.fujitsu.com \
--cc=pavel@ucw.cz \
--cc=pcihpd-discuss@lists.sourceforge.net \
/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.