]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: handle driver initialization error paths
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:55 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Jul 2013 20:57:44 +0000 (16:57 -0400)
commit6b41f941d7cdfb88b0222f5532af5032e4008bb6
tree966c93afeb1ebc0307d000b891d0210931a0a089
parent9d55911e8f14fad6d6fc95bf6db7af5af2d808c6
mwifiex: handle driver initialization error paths

mwifiex_fw_dpc() asynchronously takes care of firmware download
and initialization. Currently the error paths in mwifiex_fw_dpc()
are not handled. So if wrong firmware is downloaded, required
cleanup work is not performed. memory is leaked and workqueue
remains unterminated in this case.

mwifiex_terminate_workqueue() is moved to avoid forward
declaration.

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/main.c
drivers/net/wireless/mwifiex/main.h