]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix memory leak if opmode fails to init
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 May 2012 20:49:49 +0000 (22:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 25 May 2012 15:12:41 +0000 (11:12 -0400)
commit6c3d276f9f60aa5cf3ead5deb113905cfc85e7b3
treeb5d6d8dd478065d860d9b13a731562460aa98550
parente90bb8c14cc55983e9c0bba6a9883e5b91789236
iwlwifi: fix memory leak if opmode fails to init

If drv->op_mode is NULL after trying to init the
opmode, we go to the wrong label. Fix this, and
clean up the code a bit.

Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Reviewed-by: Guy Cohen <guy.cohen@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-drv.c