Commit 77022ae3 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix incorrect usage of usb_kill_urb in rtl8150 driver.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 43e6b5b4
...@@ -663,7 +663,7 @@ static void rtl8150_tx_timeout(struct net_device *netdev) ...@@ -663,7 +663,7 @@ static void rtl8150_tx_timeout(struct net_device *netdev)
return; return;
warn("%s: Tx timeout.", netdev->name); warn("%s: Tx timeout.", netdev->name);
dev->tx_urb->transfer_flags |= URB_ASYNC_UNLINK; dev->tx_urb->transfer_flags |= URB_ASYNC_UNLINK;
usb_kill_urb(dev->tx_urb); usb_unlink_urb(dev->tx_urb);
dev->stats.tx_errors++; dev->stats.tx_errors++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment