Commit 58b6259d authored by Johannes Berg's avatar Johannes Berg

wifi: mac80211_hwsim: add back erroneously removed cast

The robots report that we're now casting to a differently
sized integer, which is correct, and the previous patch
had erroneously removed it.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 4ee186fa ("wifi: mac80211_hwsim: fix race condition in pending packet")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4ee186fa
......@@ -4210,7 +4210,7 @@ static int hwsim_tx_info_frame_received_nl(struct sk_buff *skb_2,
u64 skb_cookie;
txi = IEEE80211_SKB_CB(skb);
skb_cookie = (u64)txi->rate_driver_data[0];
skb_cookie = (u64)(uintptr_t)txi->rate_driver_data[0];
if (skb_cookie == ret_skb_cookie) {
__skb_unlink(skb, &data2->pending);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment