]> git.itanic.dy.fi Git - linux-stable/commit
can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop()
authorJimmy Assarsson <extja@kvaser.com>
Tue, 16 May 2023 13:43:13 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:36:53 +0000 (17:36 +0100)
commit4857ccfbe28312b591ef7914129f3e8f7ddca51c
treeb5c5bcb1757a8f694cf0fe3def8f598f09d25443
parent9ac2448c24a926fbda72290edee698427971e0e7
can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop()

commit aed0e6ca7dbb8fbea9bc69c9ac663d5533c8c5d8 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: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Cc: stable@vger.kernel.org
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Link: https://lore.kernel.org/r/20230516134318.104279-2-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/kvaser_pciefd.c