lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: oops in 2.3.37, isapnp error??
Date

Someone thought it would be a good idea to populate the isapnp device list
before actually initialising it. I sent a patch to Alan yesterday.

Index: isapnp.c
===================================================================
RCS file: /cvs/linux/drivers/pnp/Attic/isapnp.c,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 isapnp.c
--- isapnp.c 2000/01/09 16:46:21 1.1.2.8
+++ isapnp.c 2000/01/09 19:01:26
@@ -982,11 +982,11 @@
card->device = (header[3] << 8) | header[2];
card->serial = (header[7] << 24) | (header[6] << 16) | (header[5] << 8) | header[4];
isapnp_checksum_value = 0x00;
+ INIT_LIST_HEAD(&card->devices);
isapnp_parse_resource_map(card);
if (isapnp_checksum_value != 0x00)
printk("isapnp: checksum for device %i is not valid (0x%x)\n", csn, isapnp_checksum_value);
card->checksum = isapnp_checksum_value;
- INIT_LIST_HEAD(&card->devices);

list_add_tail(&card->node, &isapnp_cards);
}

--
dwmw2



-
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:2.052 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site