Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: fix the metro-usb change I messed up

Fixes the leak of a tty kref that Jiri pointed out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
6b9563a7 9b12daf7

+1 -1
+1 -1
drivers/usb/serial/metro-usb.c
··· 136 136 137 137 /* Force the data to the tty layer. */ 138 138 tty_flip_buffer_push(tty); 139 - tty_kref_put(tty); 140 139 } 140 + tty_kref_put(tty); 141 141 142 142 /* Set any port variables. */ 143 143 spin_lock_irqsave(&metro_priv->lock, flags);