linux/drivers/net/arcnet
Wang Hai 88277853cf arcnet: fix potential memory leak in com20020_probe()
[ Upstream commit 1c40cde6b5 ]

In com20020_probe(), if com20020_config() fails, dev and info
will not be freed, which will lead to a memory leak.

This patch adds freeing dev and info after com20020_config()
fails to fix this bug.

Compile tested only.

Fixes: 15b99ac172 ("[PATCH] pcmcia: add return value to _config() functions")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:41:07 +01:00
..
arc-rawmode.c
arc-rimi.c net: arcnet: Fix RESET flag handling 2021-01-29 20:54:06 -08:00
arcdevice.h net: arcnet: Fix RESET flag handling 2021-01-29 20:54:06 -08:00
arcnet.c arcnet: use new tasklet API 2021-02-02 15:51:17 -08:00
capmode.c arcnet: capmode: remove redundant assignment to pointer pkt 2019-08-30 14:14:46 -07:00
com90io.c net: arcnet: Fix RESET flag handling 2021-01-29 20:54:06 -08:00
com90xx.c net: arcnet: Fix RESET flag handling 2021-01-29 20:54:06 -08:00
com9026.h
com20020_cs.c arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:41:07 +01:00
com20020-isa.c net: arcnet: Fix RESET flag handling 2021-01-29 20:54:06 -08:00
com20020-pci.c net: arcnet: com20020: Fix null-ptr-deref in com20020pci_probe() 2022-03-08 19:12:46 +01:00
com20020.c
com20020.h
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
rfc1051.c
rfc1201.c