Skip to contentSkip to conversation

UEAGLE : null pointer dereference fix

PATCH In review matthieu castet 1 participant 2 messages Apr 2, 2006

Subsystems (3)
lore
Share & tools
lore

matthieu castet

author maintainer
#0 lore raw

PATCH 3/4 UEAGLE : null pointer dereference fix

Hi,

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

ueagle-atm.c +1 -1
Index: ueagle-atm.c
===================================================================
@@ -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;
 	}
 
author maintainer
#1 lore raw
Quoted 4 lines · matthieu castet

Hi,

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

add correct path for the file name

drivers/usb/atm/ueagle-atm.c +1 -1
Index: ueagle-atm.c
===================================================================
@@ -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;
 	}