aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/usb/kvaser_usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c
index 2e7d513a7c11..9accc8272c27 100644
--- a/drivers/net/can/usb/kvaser_usb.c
+++ b/drivers/net/can/usb/kvaser_usb.c
@@ -1246,6 +1246,9 @@ static int kvaser_usb_close(struct net_device *netdev)
1246 if (err) 1246 if (err)
1247 netdev_warn(netdev, "Cannot stop device, error %d\n", err); 1247 netdev_warn(netdev, "Cannot stop device, error %d\n", err);
1248 1248
1249 /* reset tx contexts */
1250 kvaser_usb_unlink_tx_urbs(priv);
1251
1249 priv->can.state = CAN_STATE_STOPPED; 1252 priv->can.state = CAN_STATE_STOPPED;
1250 close_candev(priv->netdev); 1253 close_candev(priv->netdev);
1251 1254