OpenCloudOS-Kernel/drivers/net/wan
Esina Ekaterina 488e0bf7f3 net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs
If uhdlc_priv_tsa != 1 then utdm is not initialized.
And if ret != NULL then goto undo_uhdlc_init, where
utdm is dereferenced. Same if dev == NULL.

Found by Astra Linux on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.

Fixes: 8d68100ab4 ("soc/fsl/qe: fix err handling of ucc_of_parse_tdm")
Signed-off-by: Esina Ekaterina <eesina@astralinux.ru>
Link: https://lore.kernel.org/r/20230112074703.13558-1-eesina@astralinux.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-01-13 21:34:31 -08:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig net: wan: remove support for Z85230-based devices 2022-04-27 12:22:56 +01:00
Makefile net: wan: remove support for Z85230-based devices 2022-04-27 12:22:56 +01:00
c101.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
farsync.c net: farsync: Fix kmemleak when rmmods farsync 2022-12-12 09:42:45 +00:00
farsync.h WAN: Fix syntax errors in comments 2022-06-07 10:45:25 +02:00
fsl_ucc_hdlc.c net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs 2023-01-13 21:34:31 -08:00
fsl_ucc_hdlc.h net/wan/fsl_ucc_hdlc: avoid use of IS_ERR_VALUE() 2019-12-09 13:57:45 -06:00
hd64570.c net: hd64570: add some required spaces 2021-06-07 12:25:21 -07:00
hd64570.h
hd64572.c net: wan: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
hd64572.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hdlc.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_cisco.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_fr.c net: hldc_fr: use dev_addr_set() 2021-10-22 10:16:18 -07:00
hdlc_ppp.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw_eth.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_x25.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
ixp4xx_hss.c net: wan: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
lapbether.c net: lapbether: fix issue of invalid opcode in lapbeth_open() 2022-11-08 12:47:36 +01:00
n2.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pc300too.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pci200syn.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
slic_ds26522.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
slic_ds26522.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
wanxl.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
wanxl.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
wanxlfw.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
wanxlfw.inc_shipped