Skip to content
Commit fce4877a authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

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: default avatarAlan Cox <alan@redhat.com>
Tested-by: default avatarHelge Hafting <helge.hafting@aitel.hist.no>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0fb7f4f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment