commit | fce4877a6792ad72b88f6fd7556d19da5f20364d | [log] [tgz] |
---|---|---|
author | Alan Cox <alan@redhat.com> | Thu Oct 30 15:54:12 2008 +0000 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Oct 30 12:09:07 2008 -0700 |
tree | cc272f4b863ebfb6595974feca28168cb59fc367 | |
parent | 0fb7f4f0cef8e7d2944189ff2cb68694ef4b683a [diff] |
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 <alan@redhat.com> Tested-by: Helge Hafting <helge.hafting@aitel.hist.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>