aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2023-03-14 19:49:34 +0200
committerJohannes Berg <[email protected]>2023-03-15 13:25:15 +0100
commit8f55564c05123b790f25562fa02ca2e1dbf9c4f5 (patch)
treebea57680bb4279e1cb896a3521c6f75907409f61 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parentc2db01752735b522ae150b8698fd4e526efbbc20 (diff)
wifi: iwlwifi: fw: pnvm: fix uefi reduced TX power loading
There are a number of issues here: * if trans->reduce_power_loaded is already true, we call iwl_trans_set_reduce_power() with an uninitialized len value * in this case we also clobber a previous load/setting * if iwl_uefi_get_reduced_power() returns an ERR_PTR() we try to kfree() it Move the iwl_trans_set_reduce_power() call into the success case only to fix these issues. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230314194113.aa2cf2281f5d.I33b4ab3427f1921c184c52fecd0f46781a89dc8a@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