aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2023-04-18 12:28:08 +0300
committerJohannes Berg <[email protected]>2023-04-20 11:45:55 +0200
commit457d7fb03e6c3d73fbb509bd85fc4b02d1ab405e (patch)
tree7d0e8b37cae93afa355eeaa3c4bafa2a42ce284d /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parentf4d4ba4613dc92a58a8c051f7b6bcb0276b1fecc (diff)
wifi: iwlwifi: mvm: fix potential memory leak
If we do get multiple notifications from firmware, then we might have allocated 'notif', but don't free it. Fix that by checking for duplicates before allocation. Fixes: 4da46a06d443 ("wifi: iwlwifi: mvm: Add support for wowlan info notification") Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230418122405.116758321cc4.I8bdbcbb38c89ac637eaa20dda58fa9165b25893a@changeid Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
0 files changed, 0 insertions, 0 deletions