Skip to content

Commit

Permalink
USB: oxu210hp: release spinlock on error path
Browse files Browse the repository at this point in the history
Smatch complained about this missing spinlock.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 30, 2010
1 parent 6f44bcb commit 82a5eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/host/oxu210hp-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82a5eeb

Please sign in to comment.