]> 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)
commit3cb6eacb40b3130e7b8be2e80e333dc758e95601
tree03a73aad40ab8f4a2a72f52bce6ed8bea074c06b
parent4fb600dde4f4df000db3ea6dd74403837673fd2f
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