]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix memory leak issue for sdio and pcie cards
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 15 Nov 2013 03:10:41 +0000 (19:10 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Nov 2013 19:29:32 +0000 (14:29 -0500)
commitb239f13d3e1720233c09c34a0cd6332e21a8e0a8
tree11c69a91582c9eed44c5cb583bf65ab8dc052e57
parent22e9b7dbb680697a45bdb3e15d9311cafd813961
mwifiex: fix memory leak issue for sdio and pcie cards

When driver is failed to load, card pointer doesn't get
freed. We will free it in cleanup handler which is called
in failure as well as unload path.
Also, update drvdata in init/cleanup handlers instead of
register/unregister handlers.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sdio.c