tty: moxa, fix refcounting in moxa_poll_port
authorJiri Slaby <jirislaby@gmail.com>
Mon, 6 Apr 2009 16:34:04 +0000 (17:34 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Apr 2009 21:36:33 +0000 (14:36 -0700)
commit0e0fd7d73ed130583dca16405b029f56bf65109f
treed32a3aafc1abc6f86819bc52773500b9205c2136
parentbbb8e6bf10c5c3c9c70a94aa26cb27f95f10dee5
tty: moxa, fix refcounting in moxa_poll_port

There is missing tty_kref_put on some paths in moxa_poll_port,
although the reference is always taken. Fix it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Reported-by: Jan 'Yenya' Kasprzak <kas@fi.muni.cz>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/moxa.c