OSDN Git Service

iwlwifi: mvm: Fix possible NULL dereference
authorIlan Peer <ilan.peer@intel.com>
Tue, 7 Sep 2021 11:32:14 +0000 (14:32 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Sep 2021 17:00:07 +0000 (20:00 +0300)
commit24d5f16e407b75bc59d5419b957a9cab423b2681
tree0e2ab1fa1a68ff8a40a204af3bc3820cbf93a6a7
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
iwlwifi: mvm: Fix possible NULL dereference

In __iwl_mvm_remove_time_event() check that 'te_data->vif' is NULL
before dereferencing it.

Fixes: 7b3954a1d69a ("iwlwifi: mvm: Explicitly stop session protection before unbinding")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210907143156.e80e52167d93.Ie2247f43f8acb2cee6dff5b07a3947c79a772835@changeid
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c