mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:41:57 +00:00
[PATCH] IB/mthca: release mutex on doorbell alloc error path
Release mutex on error return path from mthca_alloc_db(). Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
55645e9b0a
commit
2714eb5a4f
1 changed files with 2 additions and 1 deletions
|
@ -337,7 +337,8 @@ int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, u32 **db)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -1;
|
ret = -EINVAL;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = start; i != end; i += dir)
|
for (i = start; i != end; i += dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue