diff options
author | matthieu castet <castet.matthieu@free.fr> | 2006-04-02 12:44:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-04-14 14:12:23 -0400 |
commit | 584958c3d2985396bdb6f96ae632971b43f6f984 (patch) | |
tree | c79324b232db51b93c74548ff2a6c15a690e5b70 /drivers/usb | |
parent | 22fcceb546227a4c557d1844c1796c13a5086c9f (diff) |
[PATCH] USB: UEAGLE : null pointer dereference fix
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/atm/ueagle-atm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index 602be5488c9d..047fb4ea2fa6 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -1673,7 +1673,7 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf, | |||
1673 | 1673 | ||
1674 | sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL); | 1674 | sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL); |
1675 | if (!sc) { | 1675 | if (!sc) { |
1676 | uea_err(INS_TO_USBDEV(sc), "uea_init: not enough memory !\n"); | 1676 | uea_err(usb, "uea_init: not enough memory !\n"); |
1677 | return -ENOMEM; | 1677 | return -ENOMEM; |
1678 | } | 1678 | } |
1679 | 1679 | ||