OpenCloudOS-Kernel/drivers/net/hamradio
Wang Hai 98749b7188 yam: fix possible memory leak in yam_init_driver
If register_netdev(dev) fails, free_netdev(dev) needs
to be called, otherwise a memory leak will occur.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-04 15:58:41 -07:00
..
6pack.c 6pack,mkiss: fix possible deadlock 2019-12-13 21:49:29 -08:00
Kconfig docs: networking: convert z8530drv.txt to ReST 2020-05-01 12:24:41 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
baycom_epp.c hamradio: Delete unnecessary checks before the macro call “dev_kfree_skb” 2019-08-22 16:22:03 -07:00
baycom_par.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 69 2019-05-24 17:36:47 +02:00
baycom_ser_fdx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 69 2019-05-24 17:36:47 +02:00
baycom_ser_hdx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 69 2019-05-24 17:36:47 +02:00
bpqether.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-15 13:48:59 -07:00
dmascc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
hdlcdrv.c hdlcdrv: replace unnecessary assertion in hdlcdrv_register 2019-12-19 17:34:20 -08:00
mkiss.c 6pack,mkiss: fix possible deadlock 2019-12-13 21:49:29 -08:00
scc.c docs: networking: convert z8530drv.txt to ReST 2020-05-01 12:24:41 -07:00
yam.c yam: fix possible memory leak in yam_init_driver 2020-06-04 15:58:41 -07:00
z8530.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00