Skip to content

Commit

Permalink
[PATCH] USB: UEAGLE : null pointer dereference fix
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
matthieu castet authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent 22fcceb commit 584958c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/atm/ueagle-atm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,

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;
}

Expand Down

0 comments on commit 584958c

Please sign in to comment.