]> git.karo-electronics.de Git - linux-beck.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)
commit3c59e328eb4ff23781bfa4cfc9f6f496003bf8b9
tree11c69a91582c9eed44c5cb583bf65ab8dc052e57
parent98a4635bba7050afdbdce428cc44a0471779ffc5
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