diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-07-24 17:10:10 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-24 17:10:10 -0700 |
commit | ac2a7b13176157833baf5db0db20cfb370bd7779 (patch) | |
tree | 7e0268614e850c784a01db3b4446514e4d402fbf /drivers | |
parent | a3336056504d780590ac6d6ac94fbba829994594 (diff) | |
parent | 11c9027c983e9e4b408ee5613b6504d24ebd85be (diff) | |
download | linux-stable-ac2a7b13176157833baf5db0db20cfb370bd7779.tar.gz linux-stable-ac2a7b13176157833baf5db0db20cfb370bd7779.tar.bz2 linux-stable-ac2a7b13176157833baf5db0db20cfb370bd7779.zip |
Merge tag 'linux-can-fixes-for-6.5-20230724' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
Marc Kleine-Budde says:
====================
pull-request: can 2023-07-24
The first patch is by me and adds a missing set of CAN state to
CAN_STATE_STOPPED on close in the gs_usb driver.
The last patch is by Eric Dumazet and fixes a lockdep issue in the CAN
raw protocol.
* tag 'linux-can-fixes-for-6.5-20230724' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can:
can: raw: fix lockdep issue in raw_release()
can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
====================
Link: https://lore.kernel.org/r/20230724150141.766047-1-mkl@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/can/usb/gs_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c index f418066569fc..bd9eb066ecf1 100644 --- a/drivers/net/can/usb/gs_usb.c +++ b/drivers/net/can/usb/gs_usb.c @@ -1030,6 +1030,8 @@ static int gs_can_close(struct net_device *netdev) usb_kill_anchored_urbs(&dev->tx_submitted); atomic_set(&dev->active_tx_urbs, 0); + dev->can.state = CAN_STATE_STOPPED; + /* reset the device */ rc = gs_cmd_reset(dev); if (rc < 0) |