[PATCH 3/4] UEAGLE : null pointer dereference fix

matthieu castet castet.matthieu at free.fr
Sun Apr 2 12:39:49 EDT 2006


Hi,

this patch fix potential null pointer dereference.  Found by the 
Coverity checker.

Signed-off-by: Duncan Sands <baldrick at free.fr>
Signed-off-by: Matthieu CASTET <castet.matthieu at free.fr>


-------------- next part --------------
Index: ueagle-atm.c
===================================================================
--- ueagle-atm.c	(révision 265)
+++ ueagle-atm.c	(révision 266)
@@ -1673,7 +1673,7 @@
 
 	sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL);
 	if (!sc) {
-		uea_err(INS_TO_USBDEV(sc), "uea_init: not enough memory !\n");
+		uea_err(usb, "uea_init: not enough memory !\n");
 		return -ENOMEM;
 	}
 


More information about the Usbatm mailing list