]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ftdi_sio: fix kref leak
authorJim Paris <jim@jtan.com>
Thu, 15 Jan 2009 13:31:07 +0000 (13:31 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Jan 2009 20:48:36 +0000 (12:48 -0800)
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 <jim@jtan.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/ftdi_sio.c

index ef6cfa5a447feba817ffd8a8a819a8451db1918e..c70a8f667d85aa007e9260a24c92c9cf94d118c8 100644 (file)
@@ -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 */