]> git.baikalelectronics.ru Git - kernel.git/commit
can: kvaser_pciefd: Empty SRB buffer in probe
authorJimmy Assarsson <extja@kvaser.com>
Tue, 16 May 2023 13:43:16 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:06 +0000 (12:44 +0100)
commit4c3841a4b2cbd2637bd242dc5f39efbc807241f0
tree1c5a41884b5464924bd8ce1df36af28558cf1c59
parent246db4a7fb65e09d29a8d0f5dc84b31011658919
can: kvaser_pciefd: Empty SRB buffer in probe

commit c589557dd1426f5adf90c7a919d4fde5a3e4ef64 upstream.

Empty the "Shared receive buffer" (SRB) in probe, to assure we start in a
known state, and don't process any irrelevant packets.

Fixes: ea3f54dd9351 ("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-5-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