summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-29 12:01:27 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-30 09:25:11 -0700
commit82a5eeb9f486366ad1b6c3be2e0d328ca185aa7e (patch)
tree5accf384e374060f262ffbea2d8e313bad2b532a /drivers/usb
parent6f44bcb60bfa58590142545096b64f44144f0bc1 (diff)
downloadblackbird-op-linux-82a5eeb9f486366ad1b6c3be2e0d328ca185aa7e.tar.gz
blackbird-op-linux-82a5eeb9f486366ad1b6c3be2e0d328ca185aa7e.zip
USB: oxu210hp: release spinlock on error path
Smatch complained about this missing spinlock. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/oxu210hp-hcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c
index 50f57f468836..e62b30b3e429 100644
--- a/drivers/usb/host/oxu210hp-hcd.c
+++ b/drivers/usb/host/oxu210hp-hcd.c
@@ -660,13 +660,13 @@ static struct ehci_qh *oxu_qh_alloc(struct oxu_hcd *oxu)
if (qh->dummy == NULL) {
oxu_dbg(oxu, "no dummy td\n");
oxu->qh_used[i] = 0;
-
- return NULL;
+ qh = NULL;
+ goto unlock;
}
oxu->qh_used[i] = 1;
}
-
+unlock:
spin_unlock(&oxu->mem_lock);
return qh;
OpenPOWER on IntegriCloud