diff options
author | Alan Cox <alan@linux.intel.com> | 2012-07-24 05:59:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-10 15:53:30 -0400 |
commit | 6b9563a714138dc2377c500e588e31f7166c92f0 (patch) | |
tree | 7f44c37778c3ca5fa7348f4049ffec4dc6419ec6 /drivers/usb/serial/metro-usb.c | |
parent | 9b12daf70815364d07bc0bbac41468098264f782 (diff) |
tty: fix the metro-usb change I messed up
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>
Diffstat (limited to 'drivers/usb/serial/metro-usb.c')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 7ae9af6b2a54..2b0627b5fe2c 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c | |||
@@ -136,8 +136,8 @@ static void metrousb_read_int_callback(struct urb *urb) | |||
136 | 136 | ||
137 | /* Force the data to the tty layer. */ | 137 | /* Force the data to the tty layer. */ |
138 | tty_flip_buffer_push(tty); | 138 | tty_flip_buffer_push(tty); |
139 | tty_kref_put(tty); | ||
140 | } | 139 | } |
140 | tty_kref_put(tty); | ||
141 | 141 | ||
142 | /* Set any port variables. */ | 142 | /* Set any port variables. */ |
143 | spin_lock_irqsave(&metro_priv->lock, flags); | 143 | spin_lock_irqsave(&metro_priv->lock, flags); |