commit | 3c59e328eb4ff23781bfa4cfc9f6f496003bf8b9 | [log] [tgz] |
---|---|---|
author | Amitkumar Karwar <akarwar@marvell.com> | Thu Nov 14 19:10:41 2013 -0800 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Nov 15 14:29:32 2013 -0500 |
tree | 11c69a91582c9eed44c5cb583bf65ab8dc052e57 | |
parent | 98a4635bba7050afdbdce428cc44a0471779ffc5 [diff] |
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>