]> 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>
Wed, 24 May 2023 16:32:50 +0000 (17:32 +0100)
commit5c2af563ed1a268e44b7b9925669bd5a20732996
tree6a83ffdb9c190b43e5fa0841f98f31f589bdd0c1
parentd8a533f3b78793ef5904ac103752e9407423b291
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