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>

authored by Alan Cox and committed by Linus Torvalds fce4877a 0fb7f4f0

+1
+1
drivers/usb/serial/usb-serial.c
··· 281 281 if (tty->driver_data) 282 282 tty->driver_data = NULL; 283 283 tty_port_tty_set(&port->port, NULL); 284 + tty_kref_put(tty); 284 285 } 285 286 } 286 287