Skip to content

Commit

Permalink
tty: fix the metro-usb change I messed up
Browse files Browse the repository at this point in the history
Fixes the leak of a tty kref that Jiri pointed out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent 9b12daf commit 6b9563a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b9563a

Please sign in to comment.