ChangeSet 1.2181.4.78, 2005/03/28 12:33:04-08:00, [EMAIL PROTECTED]

        [PATCH] drivers/usb/misc/usbtest.c: fix a NULL dereference
        
        This patch fixes a NULL dereference found by the Coverity checker.
        
        Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
        Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>



 usbtest.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
--- a/drivers/usb/misc/usbtest.c        2005-03-30 15:20:42 -08:00
+++ b/drivers/usb/misc/usbtest.c        2005-03-30 15:20:42 -08:00
@@ -851,7 +851,7 @@
         */
        urb = kmalloc (param->sglen * sizeof (struct urb *), SLAB_KERNEL);
        if (!urb)
-               goto cleanup;
+               return -ENOMEM;
        memset (urb, 0, param->sglen * sizeof (struct urb *));
        for (i = 0; i < param->sglen; i++) {
                int                     pipe = usb_rcvctrlpipe (udev, 0);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to