diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2021-11-30 12:59:51 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2021-12-07 12:58:05 +0200 |
commit | 46c7b05a4f91f425d429bbe152c0185e9f8a5d18 (patch) | |
tree | 677e25daedc1bbf45d149de01103ab9598a59600 /drivers/net/wireless/intel/iwlwifi/queue/tx.c | |
parent | 1a4d5758692519d6de648803a6d1dbba000bfe74 (diff) |
iwlwifi: mvm: fix a possible NULL pointer deference
Smatch spot a possible NULL pointer dereference. Fix it.
__iwl_mvm_mac_set_key can be called with sta = NULL
Also add a NULL pointer check after memory allocation.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://lore.kernel.org/r/20211130105951.85539-1-emmanuel.grumbach@intel.com
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/queue/tx.c')
0 files changed, 0 insertions, 0 deletions