lkml.org 
[lkml]   [2006]   [Apr]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 02 Apr 2006 18:39:49 +0200
Frommatthieu castet <>
Subject[PATCH 3/4] UEAGLE : null pointer dereference fix
Hi,

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

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


Index: ueagle-atm.c
===================================================================
--- ueagle-atm.c	(rvision 265)
+++ ueagle-atm.c	(rvision 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;
 	}
 
\
 
 \ /
  Last update: 2006-04-03 14:38    [from the cache]
©2003-2008