Commit 6b9563a7 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

tty: fix the metro-usb change I messed up

Fixes the leak of a tty kref that Jiri pointed out.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b12daf7
......@@ -136,8 +136,8 @@ static void metrousb_read_int_callback(struct urb *urb)
/* Force the data to the tty layer. */
tty_flip_buffer_push(tty);
tty_kref_put(tty);
}
tty_kref_put(tty);
/* Set any port variables. */
spin_lock_irqsave(&metro_priv->lock, flags);
......
Markdown is supported
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