]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] rocket.c: Fix ldisc ref count handling
authorMichal Ostrowski <mostrows@watson.ibm.com>
Fri, 15 Jul 2005 10:56:33 +0000 (03:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 15 Jul 2005 16:54:51 +0000 (09:54 -0700)
commit74703e387af13d7ca3f96540ebdd531256bbe510
treec16aef43738ee0bf32e3514065ad394d04980900
parentbd751a9fc81932500b51cffdaeca3bbaf9b03881
[PATCH] rocket.c: Fix ldisc ref count handling

If bailing out because there is nothing to receive in rp_do_receive(),
tty_ldisc_deref is not called.  Failure to do so increases the ref count
and causes release_dev() to hang since it can't get the ref count to 0.

Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/rocket.c