From: Amitkumar Karwar Date: Wed, 31 Jul 2013 00:18:15 +0000 (-0700) Subject: mwifiex: fix adapter pointer dereference issue X-Git-Tag: v3.12-rc1~132^2~297^2^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3afd99fb5adfb31925f0b493a0d4152cd6447cc;p=pandora-kernel.git mwifiex: fix adapter pointer dereference issue It has introduced by recent commit 6b41f941d7cd: "mwifiex: handle driver initialization error paths" which adds error path handling for mwifiex_fw_dpc(). release_firmware(adapter->*) is called for success as well as failure paths. In failure paths, adapter is already freed at this point. The issue is fixed by moving mwifiex_free_adapter() call. Reported-by: Dan Carpenter Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed