aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorAnssi Hannula <[email protected]>2022-10-10 17:08:29 +0200
committerMarc Kleine-Budde <[email protected]>2022-10-11 08:50:44 +0200
commit0be1a655fe68c8e6dcadbcbddb69cf2fb29881f5 (patch)
tree1b648f2929c7bcd472d5840b9370ad24e6862c8c /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent455561fb618fde40558776b5b8435f9420f335db (diff)
can: kvaser_usb_leaf: Fix CAN state after restart
can_restart() expects CMD_START_CHIP to set the error state to ERROR_ACTIVE as it calls netif_carrier_on() immediately afterwards. Otherwise the user may immediately trigger restart again and hit a BUG_ON() in can_restart(). Fix kvaser_usb_leaf set_mode(CMD_START_CHIP) to set the expected state. Cc: [email protected] Fixes: 080f40a6fa28 ("can: kvaser_usb: Add support for Kvaser CAN/USB devices") Tested-by: Jimmy Assarsson <[email protected]> Signed-off-by: Anssi Hannula <[email protected]> Signed-off-by: Jimmy Assarsson <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions