Message ID | 20220429125612.1792561-3-mkl@pengutronix.de |
---|---|
State | Accepted |
Commit | 47f070a63e735bcc8d481de31be1b5a1aa62b31c |
Headers | show |
Series | [net,1/5] can: isotp: remove re-binding of bound socket | expand |
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c index d0c5a7a60daf..1189057b5d68 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c @@ -1102,8 +1102,10 @@ static int grcan_close(struct net_device *dev) priv->closing = true; if (priv->need_txbug_workaround) { + spin_unlock_irqrestore(&priv->lock, flags); del_timer_sync(&priv->hang_timer); del_timer_sync(&priv->rr_timer); + spin_lock_irqsave(&priv->lock, flags); } netif_stop_queue(dev); grcan_stop_hardware(dev);