]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] rocket.c: Fix ldisc ref count handling
authorMichal Ostrowski <mostrows@watson.ibm.com>
Thu, 14 Jul 2005 23:46:26 +0000 (16:46 -0700)
committerChris Wright <chrisw@osdl.org>
Fri, 5 Aug 2005 07:04:15 +0000 (00:04 -0700)
commite0b02eec6f8371d993c4aca134d728d3510f7c8a
tree206fca2f99250a7f834802efee490c7db0ccedf9
parent50eb930a92e7070f6a110789245398bff4061059
[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=20
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: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/rocket.c