Re: 2.5.52 PNP failure

Ruslan U. Zakirov (cubic@miee.ru)
Wed, 18 Dec 2002 23:49:45 +0300 (MSK)


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.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/