iwlwifi: mvm: check if returned value is NULL
authorSharon Dvir <sharon.dvir@intel.com>
Tue, 21 Feb 2017 08:41:31 +0000 (10:41 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 12:17:58 +0000 (15:17 +0300)
commite3df1e4b51e5e54637355db7d732fedf271530e7
treedaa81ab72ab3229589750f438eb032aa4d82bd35
parent8c5f47b15c5c1537c000e3a4c92c82c5bbf521a4
iwlwifi: mvm: check if returned value is NULL

While freeing inactive queue, check mvmsta to be valid before
dereferencing it.  Found by Klocwork.

Signed-off-by: Sharon Dvir <sharon.dvir@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c