Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3128)

Unified Diff: drivers/net/usb/gobi/qmidevice.c

Issue 6695025: CHROMIUM: qcusbnet: don't leak clients_lock (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/net/usb/gobi/qmidevice.c
diff --git a/drivers/net/usb/gobi/qmidevice.c b/drivers/net/usb/gobi/qmidevice.c
index 82cb0fb3c1cad2227d14e146bf70c652639a459c..0702ec9f9f1043aa597a9aefd47681d655ae97a7 100644
--- a/drivers/net/usb/gobi/qmidevice.c
+++ b/drivers/net/usb/gobi/qmidevice.c
@@ -1377,6 +1377,8 @@ static bool qmi_ready(struct qcusbnet *dev, u16 timeout)
spin_unlock_irqrestore(&dev->qmi.clients_lock, flags);
kfree(rbuf);
break;
+ } else {
+ spin_unlock_irqrestore(&dev->qmi.clients_lock, flags);
}
} else {
spin_lock_irqsave(&dev->qmi.clients_lock, flags);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698