USB: Fix cut-and-paste error in rtl8150.c
authorRobert P. J. Day <rpjday@crashcourse.ca>
Mon, 10 Mar 2008 00:44:52 +0000 (20:44 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Mar 2008 05:26:15 +0000 (22:26 -0700)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/usb/rtl8150.c

index 7e1f00131f91160833e023f416ae2834afeb52cf..df56a518691c6c9fb5664c2f972082ac84fdf693 100644 (file)
@@ -376,7 +376,7 @@ static int alloc_all_urbs(rtl8150_t * dev)
                return 0;
        }
        dev->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!dev->intr_urb) {
+       if (!dev->ctrl_urb) {
                usb_free_urb(dev->rx_urb);
                usb_free_urb(dev->tx_urb);
                usb_free_urb(dev->intr_urb);