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

Commit 6b9563a7 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

tty: fix the metro-usb change I messed up



Fixes the leak of a tty kref that Jiri pointed out.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b12daf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);