Commit 9e2db50
committed
mac80211_hwsim: call ieee80211_tx_prepare_skb under RCU protection
This is needed since it might use (and pass out) pointers to
e.g. keys protected by RCU. Can't really happen here as the
frames aren't encrypted, but we need to still adhere to the
rules.
Fixes: cacfddf ("mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220505230421.5f139f9de173.I77ae111a28f7c0e9fd1ebcee7f39dbec5c606770@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent a59d555 commit 9e2db50
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
| 2481 | + | |
2481 | 2482 | | |
2482 | 2483 | | |
2483 | 2484 | | |
2484 | 2485 | | |
2485 | 2486 | | |
| 2487 | + | |
2486 | 2488 | | |
2487 | 2489 | | |
2488 | 2490 | | |
2489 | 2491 | | |
2490 | 2492 | | |
2491 | 2493 | | |
2492 | 2494 | | |
| 2495 | + | |
2493 | 2496 | | |
2494 | 2497 | | |
2495 | 2498 | | |
| |||
0 commit comments