diff options
| author | Ilan Peer <[email protected]> | 2025-11-10 12:01:54 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2025-11-11 08:25:18 +0000 |
| commit | eaa7ce66c3e2ccda035022b5e8af09caabecd635 (patch) | |
| tree | ab8bc4903b73e60ea0c4cd1e54a1166b534e8cdb /lib/mpi/mpi-mod.c | |
| parent | wifi: mac80211: skip rate verification for not captured PSDUs (diff) | |
| download | kernel-eaa7ce66c3e2ccda035022b5e8af09caabecd635.tar.gz kernel-eaa7ce66c3e2ccda035022b5e8af09caabecd635.zip | |
wifi: mac80211_hwsim: Fix possible NULL dereference
The 'vif' pointer in the Tx information might be NULL, e.g., in
case of injected frames etc. and is not checked in all paths. Fix it.
While at it, also directly use the local 'vif' pointer.
Fixes: a37a6f54439b ("wifi: mac80211_hwsim: Add simulation support for NAN device")
Signed-off-by: Ilan Peer <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/linux-wireless/[email protected]
Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20251110140128.ec00ae795a32.I9c65659b52434189d8b2ba06710d482669a3887a@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
