]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Move num_sta_ps counter decrement after synchronize_rcu
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 27 Jan 2012 10:02:53 +0000 (11:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Jan 2012 20:48:28 +0000 (15:48 -0500)
commitaad2a5fb2413d15d2fbd4c7720d82fc4a1d042ac
treebd3d01eb44f353f4a012e53919bfc843c08a14d5
parente8048134bf4b6edb668d6e0e41eecdfce84f63c6
mac80211: Move num_sta_ps counter decrement after synchronize_rcu

Unted the assumption that the sta struct is still accessible before the
synchronize_rcu call we should move the num_sta_ps counter decrement
after synchronize_rcu to avoid incorrect decrements if num_sta_ps.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c