Skip to content
Commit 0d846bdc authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: mac80211: pass 'sta' to ieee80211_rx_data_set_sta()



There's at least one case in ieee80211_rx_for_interface()
where we might pass &((struct sta_info *)NULL)->sta to it
only to then do container_of(), and then checking the
result for NULL, but checking the result of container_of()
for NULL looks really odd.

Fix this by just passing the struct sta_info * instead.

Fixes: e66b7920 ("wifi: mac80211: fix initialization of rx->link and rx->link_sta")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c38c7018
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment