]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: stop using pointers as cookies
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Nov 2015 10:57:23 +0000 (11:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commitc5e008f294ee1c949166cb1446d3d5b13fd0d07f
tree03a73aad40ab8f4a2a72f52bce6ed8bea074c06b
parent452275b2df8f2102a6955ab83c01be379b2b75f9
mac80211_hwsim: stop using pointers as cookies

Instead of using pointers, use sequentially assigned cookies.
This is easier to understand while debugging and also avoids
problems when the pointer is reused for the next allocation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c