]> 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>
Wed, 17 Aug 2022 12:22:46 +0000 (14:22 +0200)
commit09a392b91a0eda916313047612cb9f504d72c566
tree3709c0033957d4fca8ec69e8da97ecfc74564be5
parent776ce98b90fb5b69fda4fda86c104dc016f9ccd1
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