Skip to content

Commit

Permalink
[PATCH] IB/mthca: release mutex on doorbell alloc error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Apr 16, 2005
1 parent 55645e9 commit 2714eb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/infiniband/hw/mthca/mthca_memfree.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, u32 **db)
break;

default:
return -1;
ret = -EINVAL;
goto out;
}

for (i = start; i != end; i += dir)
Expand Down

0 comments on commit 2714eb5

Please sign in to comment.