aboutsummaryrefslogtreecommitdiffstats
path: root/usb-serial-idr.patch
diff options
Diffstat (limited to 'usb-serial-idr.patch')
-rw-r--r--usb-serial-idr.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-serial-idr.patch b/usb-serial-idr.patch
index 8ebe926ae4df81..be364cb08ddf02 100644
--- a/usb-serial-idr.patch
+++ b/usb-serial-idr.patch
@@ -69,8 +69,8 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+ } else {
+ kref_get(&serial->kref);
}
- mutex_unlock(&table_lock);
+exit:
+ mutex_unlock(&table_lock);
return serial;
}