summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-07-11 13:14:24 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-11 13:16:30 +0200
commit58b6259d820d63c2adf1c7541b54cce5a2ae6073 (patch)
tree120c2e985778c6f81757fef55133ee103910a94d /drivers/net/wireless/mac80211_hwsim.c
parentwifi: mac80211_hwsim: fix race condition in pending packet (diff)
downloadlinux-58b6259d820d63c2adf1c7541b54cce5a2ae6073.tar.xz
linux-58b6259d820d63c2adf1c7541b54cce5a2ae6073.zip
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 <lkp@intel.com> Fixes: 4ee186fa7e40 ("wifi: mac80211_hwsim: fix race condition in pending packet") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index ea006248ffcd..91440b0dc0cc 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -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);