Re: oops in 2.3.37, isapnp error??

From: David Woodhouse (dwmw2@infradead.org)
Date: Mon Jan 10 2000 - 13:59:30 EST


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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:16 EST