aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorPaul Fulghum <[email protected]>2022-11-15 09:38:32 -0800
committerGreg Kroah-Hartman <[email protected]>2022-11-22 17:52:57 +0100
commit24ce048b0d4d4d8542c26459e53be4b7840d374c (patch)
tree45e4155efc5af4251609b750aeb28cd887cd23e4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent0d114e9ff940ebad8e88267013bf96c605a6b336 (diff)
tty: synclink_gt: unwind actions in error path of net device open
Resent again, last attempt still altered the plain text. Zhengchao Shao <[email protected]> identified by inspection bugs in the error path of hdlcdev_open() in synclink_gt.c The function did not fully unwind actions in the error path. The use of try_module_get()/module_put() is unnecessary, potentially hazardous and is removed. The synclink_gt driver is already pinned any point the net device is registered, a requirement for calling this entry point. The call hdlc_open() to init the generic HDLC layer is moved to after driver level init/checks and proper rollback of previous actions is added. This is a more sensible ordering as the most common error paths are at the driver level and the driver level rollbacks require less processing than hdlc_open()/hdlc_close(). This has been tested with supported hardware. Signed-off-by:Paul Fulghum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions