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

From: David Ford (david@kalifornia.com)
Date: Mon Jun 05 2000 - 20:30:31 EST


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/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:23 EST