diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-03 21:54:56 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-08-04 20:46:30 (GMT) |
commit | cbe9352fa08f90aa03b4dbf1bbabfc95d196e562 (patch) | |
tree | 960187b610e13e5ef7f461397bd0846a36221436 /sound | |
parent | 65b770468e98941e45e19780dff9283e663e6b8b (diff) | |
download | linux-fsl-qoriq-cbe9352fa08f90aa03b4dbf1bbabfc95d196e562.tar.xz |
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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@mail.by>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions