Hi,
Using the Stanford checker, we searched for null-pointer bugs in the linux
kernel code. This patch fixes numerous unchecked pointers in the ISDN hisax 
card driver (fsm.c).


Praveen Srinivasan and Frederick Akalin

--- ../linux/./drivers/isdn/hisax/fsm.c Fri Mar  2 11:12:08 2001
+++ ./drivers/isdn/hisax/fsm.c  Mon May  7 21:58:38 2001
@@ -22,6 +22,10 @@
 
        fsm->jumpmatrix = (FSMFNPTR *)
                kmalloc(sizeof (FSMFNPTR) * fsm->state_count * fsm->event_count, 
GFP_KERNEL);
+       if(fsm->jumpmatrix == NULL) {
+         return;
+       }
+
        memset(fsm->jumpmatrix, 0, sizeof (FSMFNPTR) * fsm->state_count * 
fsm->event_count);
 
        for (i = 0; i < fncount; i++
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to