Skip to content

Commit 58b6259

Browse files
committed
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: kernel test robot <[email protected]> Fixes: 4ee186f ("wifi: mac80211_hwsim: fix race condition in pending packet") Signed-off-by: Johannes Berg <[email protected]>
1 parent 4ee186f commit 58b6259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/mac80211_hwsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4210,7 +4210,7 @@ static int hwsim_tx_info_frame_received_nl(struct sk_buff *skb_2,
42104210
u64 skb_cookie;
42114211

42124212
txi = IEEE80211_SKB_CB(skb);
4213-
skb_cookie = (u64)txi->rate_driver_data[0];
4213+
skb_cookie = (u64)(uintptr_t)txi->rate_driver_data[0];
42144214

42154215
if (skb_cookie == ret_skb_cookie) {
42164216
__skb_unlink(skb, &data2->pending);

0 commit comments

Comments
 (0)