Commit 451638d1 authored by Jimmy Assarsson's avatar Jimmy Assarsson Committed by openeuler-sync-bot
Browse files

can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop()

stable inclusion
from stable-v5.10.181
commit 3bbeba3ce14d8ecac43fe0b9bb3785b0d86ca055
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3bbeba3ce14d8ecac43fe0b9bb3785b0d86ca055



--------------------------------

commit aed0e6ca upstream.

Set can.state to CAN_STATE_STOPPED in kvaser_pciefd_stop().
Without this fix, wrong CAN state was repported after the interface was
brought down.

Fixes: 26ad340e ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJimmy Assarsson <extja@kvaser.com>
Link: https://lore.kernel.org/r/20230516134318.104279-2-extja@kvaser.com


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit 55a94c4b)
parent 9057f06b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment