OrangePi_CM5/drivers/net/arcnet
Wang Hai 9cc863d523 arcnet: fix potential memory leak in com20020_probe()
[ Upstream commit 1c40cde6b5171d9c8dfc69be00464fd1c75e210b ]

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:40:02 +01:00
..
Kconfig
…
Makefile
…
arc-rawmode.c
…
arc-rimi.c
…
arcdevice.h
…
arcnet.c
…
capmode.c
…
com90io.c
…
com90xx.c
…
com9026.h
…
com20020-isa.c
…
com20020-pci.c
…
com20020.c
…
com20020.h
…
com20020_cs.c arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:40:02 +01:00
rfc1051.c
…
rfc1201.c
…