OpenCloudOS-Kernel/drivers/net/wan
Alexandra Diupina a59addacf8 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: c19b6d246a ("drivers/net: support hdlc function for QE-UCC")
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-22 08:19:18 +01:00
..
.gitignore
Kconfig
Makefile
c101.c
farsync.c net: farsync: Fix kmemleak when rmmods farsync 2022-12-12 09:42:45 +00:00
farsync.h
fsl_ucc_hdlc.c drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close() 2023-09-22 08:19:18 +01:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc.c
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
ixp4xx_hss.c
lapbether.c net: lapbether: only support ethernet devices 2023-06-15 08:55:22 +01:00
n2.c
pc300too.c
pci200syn.c
slic_ds26522.c net: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:02 +00:00
slic_ds26522.h
wanxl.c
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped