tree 6c40a85c5cb34e4a4f77b5b7274ca56987d9ab70
parent 55645e9b0ae202f9bd58e68eb141d7594163935f
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:20 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:20 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
infiniband/hw/mthca/mthca_memfree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: drivers/infiniband/hw/mthca/mthca_memfree.c
===================================================================
---
c47d89fa3fdac4efcd3a71535f08f09f68370f86/drivers/infiniband/hw/mthca/mthca_memfree.c
(mode:100644 sha1:e8f93478f38d94ee96b413b3384f5e53cd021b96)
+++
6c40a85c5cb34e4a4f77b5b7274ca56987d9ab70/drivers/infiniband/hw/mthca/mthca_memfree.c
(mode:100644 sha1:46981d48c23253cc26e062c860444fb683185978)
@@ -337,7 +337,8 @@
break;
default:
- return -1;
+ ret = -EINVAL;
+ goto out;
}
for (i = start; i != end; i += dir)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html