Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82a5eeb9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

USB: oxu210hp: release spinlock on error path



Smatch complained about this missing spinlock.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6f44bcb6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;