From: Alan Cox Date: Thu, 30 Oct 2008 15:54:12 +0000 (+0000) Subject: tty: Fix USB kref leak X-Git-Tag: v2.6.28-rc3~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fce4877a6792ad72b88f6fd7556d19da5f20364d;p=pandora-kernel.git tty: Fix USB kref leak When we close we must clear the extra reference we got when we read port->tty. Setting the port tty NULL will clear the kref held by the driver but not the one we obtained ourselves while doing the lookup. Signed-off-by: Alan Cox Tested-by: Helge Hafting Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed