From: Alan Cox Date: Tue, 14 Apr 2009 13:58:11 +0000 (+0100) Subject: tty: Fix leak in ti-usb X-Git-Tag: v2.6.30-rc2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf5450930db0ae308584e5361f3345e0ff73e643;p=pandora-kernel.git tty: Fix leak in ti-usb If the ti-usb adapter returns an zero data length frame (which happens) then we leak a kref. Found by Christoph Mair who proposed a patch. The patch here is different as Christoph's patch didn't work for the case where tty = NULL and data arrived but Christoph did all the hard work chasing it down. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed