staging: vt6656: main_usb.c correct pDevice->pControlURB goto
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 14 Oct 2013 18:58:12 +0000 (19:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Oct 2013 16:42:12 +0000 (09:42 -0700)
Correct goto of patch
staging: vt6656: make pControlURB available life time of driver.

Which should free_netdev.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c

index 0de21565738801ff703504c4d54440ff573f5f1f..a4fdd3a73ee154f51d4cdf11f8a408e8a5d96357 100644 (file)
@@ -710,7 +710,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
        pDevice->pControlURB = usb_alloc_urb(0, GFP_ATOMIC);
        if (!pDevice->pControlURB) {
                DBG_PRT(MSG_LEVEL_ERR, KERN_ERR"Failed to alloc control urb\n");
-               goto err_nomem;
+               goto err_netdev;
        }
 
        pDevice->tx_80211 = device_dma0_tx_80211;