[patch] drivers/char/serial.c OOPS on boot

David Ford (david@kalifornia.com)
Mon, 05 Jun 2000 18:30:31 -0700


Alan, it is possible for serial_pnp_guess_board to receive a NULL
pointer in dev->sysdata which is dereferenced with 'res' and generates
an OOPS. Please apply the below patch to your current tree.

--- serial.c.old Mon Jun 5 06:15:50 2000
+++ serial.c Mon Jun 5 01:14:22 2000
@@ -4907,7 +4907,7 @@
!(check_compatible_id(dev)))
return 1;

- if (res->next)
+ if (!res || res->next)
return 1;

for (resa = res->alt; resa; resa = resa->alt) {

-d

--
"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

- 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/