diff options
| author | Takashi Iwai <tiwai@suse.de> | 2022-01-21 14:40:24 +0300 |
|---|---|---|
| committer | Luca Coelho <luciano.coelho@intel.com> | 2022-02-18 11:40:49 +0300 |
| commit | 30d17c12b0895e15ce22ebc1f52a4ff02df6dbc6 (patch) | |
| tree | b9a366a6b18e3bd5778c0802cb8d2ebe9e9ba66b /tools/perf/scripts/python/sched-migration.py | |
| parent | ea0de861374b06f97620eb508d442161b56cfa62 (diff) | |
| download | linux-30d17c12b0895e15ce22ebc1f52a4ff02df6dbc6.tar.xz | |
iwlwifi: mvm: Don't call iwl_mvm_sta_from_mac80211() with NULL sta
The recent fix for NULL sta in iwl_mvm_get_tx_rate() still has a call
of iwl_mvm_sta_from_mac80211() that may be called with NULL sta.
Although this practically only points to the address and the actual
access doesn't happen due to the conditional evaluation at a later
point, it looks a bit flaky.
This patch drops the temporary variable above and evaluates
iwm_mvm_sta_from_mac80211() directly for avoiding confusions.
Fixes: d599f714b73e ("iwlwifi: mvm: don't crash on invalid rate w/o STA")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220121114024.10454-1-tiwai@suse.de
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
