Re: PNP bug

Pekka Pietik{inen (pp@netppl.fi)
Thu, 5 Feb 1998 09:19:45 +0200


On Feb 4, 11:39pm, Alan Cox wrote:

> And add this after the patch I did if your PnP explodes ;)
>
>
> --- linux/drivers/pnp/isa/isa_isolate.c~ Wed Jan 28 00:13:00 1998
> +++ linux/drivers/pnp/isa/isa_isolate.c Thu Feb 5 00:44:35 1998
> - for (dev_id2 = &dev->pnp.id; dev_id2 != NULL; dev_id = dev_id2, dev_id = dev_id->next)
> + for (dev_id2 = &dev->pnp.id; dev_id2 != NULL; dev_id = dev_id2, dev_id = dev_id2->next)
And the following if you want it to work :)

--- linux/drivers/pnp/isa/isa_isolate.c~ Mon Dec 22 20:14:52 1997
+++ linux/drivers/pnp/isa/isa_isolate.c Sat Jan 31 18:57:25 1998
@@ -605,7 +605,7 @@
break;
if (dev_id == NULL)
continue;
- for (dev_id2 = &dev->pnp.id; dev_id2 != NULL; dev_id = dev_id2, dev_id = dev_id->next)
+ for (dev_id2 = &dev->pnp.id; dev_id2 != NULL; dev_id = dev_id2, dev_id2 = dev_id2->next)
if (dev_id->t.isa.id == id_equiv_tbl[i].id_equiv)
break;
if (dev_id2 == NULL)