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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6f44bcb60b
commit
82a5eeb9f4
@@ -660,13 +660,13 @@ static struct ehci_qh *oxu_qh_alloc(struct oxu_hcd *oxu)
|
|||||||
if (qh->dummy == NULL) {
|
if (qh->dummy == NULL) {
|
||||||
oxu_dbg(oxu, "no dummy td\n");
|
oxu_dbg(oxu, "no dummy td\n");
|
||||||
oxu->qh_used[i] = 0;
|
oxu->qh_used[i] = 0;
|
||||||
|
qh = NULL;
|
||||||
return NULL;
|
goto unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
oxu->qh_used[i] = 1;
|
oxu->qh_used[i] = 1;
|
||||||
}
|
}
|
||||||
|
unlock:
|
||||||
spin_unlock(&oxu->mem_lock);
|
spin_unlock(&oxu->mem_lock);
|
||||||
|
|
||||||
return qh;
|
return qh;
|
||||||
|
Reference in New Issue
Block a user