From: Jiri Slaby Date: Sun, 6 Sep 2009 21:10:10 +0000 (+0200) Subject: tty: USB: serial/mct_u232, fix tty refcnt X-Git-Tag: v2.6.32-rc1~627^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=054f2346cb0e524cbb678759bfedabfdba4d0100;p=pandora-kernel.git tty: USB: serial/mct_u232, fix tty refcnt Stanse found a tty refcnt leak in read_int_callback. In fact it's handled wrong altogether. tty_port_tty_get can return NULL and it's not checked in that manner. Fix that by checking the tty_port_tty_get retval and put tty kref properly. http://stanse.fi.muni.cz/ Signed-off-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed