lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch for isapnp OOPS

This appears to fix the oops in isapnp_create_device at boot:

--- linus-2.3.38/drivers/pnp/isapnp.c Mon Jan 10 02:50:24 2000
+++ linux/drivers/pnp/isapnp.c Mon Jan 10 04:13:13 2000
@@ -991,6 +991,7 @@
continue;
if ((card = isapnp_alloc(sizeof(struct pci_bus))) == NULL)
continue;
+ INIT_LIST_HEAD(&card->devices);
card->number = csn;
card->vendor = (header[1] << 8) | header[0];
card->device = (header[3] << 8) | header[2];

I noticed another patch that had the INIT_LIST_HEAD lower down in
the same function: it doesn't work because the card->devices list
head is accessed earlier, in isapnp_create_devices, causing the
oops (that's where EIP points in the oops, anyway).

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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.051 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site