From: Amitkumar Karwar Date: Tue, 23 Jul 2013 02:17:55 +0000 (-0700) Subject: mwifiex: handle driver initialization error paths X-Git-Tag: v3.12-rc1~132^2~297^2^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b41f941d7cdfb88b0222f5532af5032e4008bb6;p=pandora-kernel.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed