2002-12-17 22:29:00

by Richard A Nelson

[permalink] [raw]
Subject: 2.5.52 PNP failure


Hand transcribed, so probably missing something important ...

Oops: 0000
Eip: 0060:[<c01cdbf3>] Not tainted
EIP is at compare_pnp_id+0x4f/0x78
Call Trace:
[<c01cfa43>] pnp_name_device+0x23/0x58
[<c01cd9af>] __pnp_add_device+0xf/0xc8
[<c01cdab4>] pnp_add_device+0x4c/0x54
[<c010509b>] init+0x33/0x188
[<c0105068>] init+0x0/0x188
[<c0109211>] kernel_thread_helper+0x5/0xc

<0>Kernel panic: Attempted to kill init!

--
Rick Nelson
I can saw a woman in two, but you won't want to look in the box when I do
'For My Next Trick I'll Need a Volunteer' -- Warren Zevon


2002-12-18 20:41:50

by Ruslan U. Zakirov

[permalink] [raw]
Subject: Re: 2.5.52 PNP failure

On Tue, 17 Dec 2002, Richard A Nelson wrote:

>
> Hand transcribed, so probably missing something important ...
>
> Oops: 0000
> Eip: 0060:[<c01cdbf3>] Not tainted
> EIP is at compare_pnp_id+0x4f/0x78
> Call Trace:
> [<c01cfa43>] pnp_name_device+0x23/0x58
> [<c01cd9af>] __pnp_add_device+0xf/0xc8
> [<c01cdab4>] pnp_add_device+0x4c/0x54
> [<c010509b>] init+0x33/0x188
> [<c0105068>] init+0x0/0x188
> [<c0109211>] kernel_thread_helper+0x5/0xc
>
> <0>Kernel panic: Attempted to kill init!
>
Try this small patch. I think it'll help.
--- drivers/pnp/driver.c~ 2002-12-20 02:15:30.000000000 +0300
+++ drivers/pnp/driver.c 2002-12-20 02:24:53.000000000 +0300
@@ -165,6 +165,7 @@
if (!dev)
return -EINVAL;
ptr = dev->id;
+ id->next = NULL;
while (ptr && ptr->next)
ptr = ptr->next;
if (ptr)
--
Ruslan.