提交 6b9563a7 编写于 作者: A Alan Cox 提交者: 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: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册