2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00

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>
This commit is contained in:
Alan Cox 2012-07-24 10:59:01 +01:00 committed by Greg Kroah-Hartman
parent 9b12daf708
commit 6b9563a714

View File

@ -136,8 +136,8 @@ static void metrousb_read_int_callback(struct urb *urb)
/* Force the data to the tty layer. */ /* Force the data to the tty layer. */
tty_flip_buffer_push(tty); tty_flip_buffer_push(tty);
tty_kref_put(tty);
} }
tty_kref_put(tty);
/* Set any port variables. */ /* Set any port variables. */
spin_lock_irqsave(&metro_priv->lock, flags); spin_lock_irqsave(&metro_priv->lock, flags);