]> git.baikalelectronics.ru Git - kernel.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)
commit1a0919b5ddcb1b8b9047cc23c2b58e6dabfb02e5
treeb61b853495ce6628cecc642efc6daaef540ee14c
parent51f2d4d571994b88a2f2f8c203567d9ed0426f50
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