Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9fec710 authored by Jim Paris's avatar Jim Paris Committed by Linus Torvalds
Browse files

ftdi_sio: fix kref leak



Commit 4a90f09b added kref stuff to
ftdi_sio, but missed tty_kref_put at one exit point in
ftdi_process_read.

Signed-off-by: default avatarJim Paris <jim@jtan.com>
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cd1e40f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */