]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211_hwsim: use 32-bit skb cookie
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jul 2022 19:16:45 +0000 (21:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:18 +0000 (11:17 +0200)
commit4a5e8d31d54efc5bcea74fd576ed55317ad55f07
tree12643984d535a9df9c3781e146e1dd11ab4642de
parent726c3622921c389ec2616ae510474a06df2671ac
wifi: mac80211_hwsim: use 32-bit skb cookie

commit 93f7bb8217dbe9e914fc95f80cb335e026b6efb3 upstream.

We won't really have enough skbs to need a 64-bit cookie,
and on 32-bit platforms storing the 64-bit cookie into the
void *rate_driver_data doesn't work anyway. Switch back to
using just a 32-bit cookie and uintptr_t for the type to
avoid compiler warnings about all this.

Fixes: 2e05bcefd0a8 ("wifi: mac80211_hwsim: fix race condition in pending packet")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Jeongik Cha <jeongik@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mac80211_hwsim.c