From: Jiri Slaby Date: Mon, 6 Apr 2009 16:34:10 +0000 (+0100) Subject: mxser: remove tty_port_tty_get from mxser_check_modem_status X-Git-Tag: v2.6.30-rc1~155 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0326e6d596491db64d787136cbd703bde0ee8d77;p=pandora-kernel.git mxser: remove tty_port_tty_get from mxser_check_modem_status mxser_check_modem_status is called with tty parameter, so the reference should be increased by callers already -- for ioctl syscall it is held whole time gap since open to close, for interrupt, the reference count is increased in the irq handler. There is no tty_kref_put in that function, so this also fixes a refcounting bug. Signed-off-by: Jiri Slaby Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed