From: Jim Paris Date: Thu, 15 Jan 2009 13:31:07 +0000 (+0000) Subject: ftdi_sio: fix kref leak X-Git-Tag: v2.6.29-rc2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9fec7102f01f6464b19e13ffd9d8c48663379ad;p=profile%2Fivi%2Fkernel-x86-ivi.git ftdi_sio: fix kref leak Commit 4a90f09b20f4622dcbff1f0e1e6bae1704f8ad8c added kref stuff to ftdi_sio, but missed tty_kref_put at one exit point in ftdi_process_read. Signed-off-by: Jim Paris Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index ef6cfa5..c70a8f6 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2030,7 +2030,7 @@ static void ftdi_process_read(struct work_struct *work) spin_unlock_irqrestore(&priv->rx_lock, flags); dbg("%s - deferring remainder until unthrottled", __func__); - return; + goto out; } spin_unlock_irqrestore(&priv->rx_lock, flags); /* if the port is closed stop trying to read */