aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorSalman Qazi <[email protected]>2012-06-06 18:51:35 -0700
committerTejun Heo <[email protected]>2012-06-06 18:51:35 -0700
commit967db0ea65b0bf8507a7643ac8f296c4f2c0a834 (patch)
tree143a9493c9a81db130b313c0c46d87a909485541 /net/lapb/lapb_in.c
parent71fae7e714749a52cb8be777ec014f82e8a747f4 (diff)
cgroup: make sure that decisions in __css_put are atomic
__css_put is using atomic_dec on the ref count, and then looking at the ref count to make decisions. This is prone to races, as someone else may decrement ref count between our decrement and our decision. Instead, we should base our decisions on the value that we decremented the ref count to. (This results in an actual race on Google's kernel which I haven't been able to reproduce on the upstream kernel. Having said that, it's still incorrect by inspection). Signed-off-by: Salman Qazi <[email protected]> Acked-by: Li Zefan <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Cc: [email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions