aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2009-08-03 21:54:56 +0000
committerGreg Kroah-Hartman <[email protected]>2009-08-04 20:46:30 +0000
commitcbe9352fa08f90aa03b4dbf1bbabfc95d196e562 (patch)
tree960187b610e13e5ef7f461397bd0846a36221436 /security/selinux/hooks.c
parenttty-ldisc: turn ldisc user count into a proper refcount (diff)
downloadkernel-cbe9352fa08f90aa03b4dbf1bbabfc95d196e562.tar.gz
kernel-cbe9352fa08f90aa03b4dbf1bbabfc95d196e562.zip
tty-ldisc: be more careful in 'put_ldisc' locking
Use 'atomic_dec_and_lock()' to make sure that we always hold the tty_ldisc_lock when the ldisc count goes to zero. That way we can never race against 'tty_ldisc_try()' increasing the count again. Reported-by: OGAWA Hirofumi <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Tested-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions