aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAlexandra Diupina <[email protected]>2023-09-19 17:25:02 +0300
committerDavid S. Miller <[email protected]>2023-09-22 08:19:18 +0100
commita59addacf899b1b21a7b7449a1c52c98704c2472 (patch)
tree931a16d394646aff191b307f1c6f2e1e33bcf327 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent27bbf45eae9ca98877a2d52a92a188147cd61b07 (diff)
drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
Process the result of hdlc_open() and call uhdlc_close() in case of an error. It is necessary to pass the error code up the control flow, similar to a possible error in request_irq(). Also add a hdlc_close() call to the uhdlc_close() because the comment to hdlc_close() says it must be called by the hardware driver when the HDLC device is being closed Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC") Signed-off-by: Alexandra Diupina <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions