From: Alan Cox Date: Tue, 24 Jul 2012 09:59:01 +0000 (+0100) Subject: tty: fix the metro-usb change I messed up X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b9563a714138dc2377c500e588e31f7166c92f0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 7ae9af6b2a54..2b0627b5fe2c 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c @@ -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);