]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: take scan ref only on success
authorEliad Peller <eliad@wizery.com>
Thu, 15 Oct 2015 07:58:48 +0000 (10:58 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 25 Oct 2015 11:45:08 +0000 (13:45 +0200)
commit78ba82f777f3ab41f10afa3694c9c7633bf595d4
treeb61b853495ce6628cecc642efc6daaef540ee14c
parentc8f423159e3e53d30e5b36a455797ee2072b09d0
iwlwifi: mvm: take scan ref only on success

In some cases, scan reference was taken, but wasn't
released even though scan command wasn't actually issued.

Change the current code to simply take the reference
only on success.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c