tree 08f289d66edcfbcde6c82f2c70ce8c836c336b8f
parent 620e490db0bcabac190c7f78a325c8153d070491
author Roland Dreier <[EMAIL PROTECTED]> Tue Apr 12 08:26:46 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:46 2005
[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]>
mthca_memfree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: drivers/infiniband/hw/mthca/mthca_memfree.c
===================================================================
---
333dbd1ab1923eb137f8d915cb697d3c689316f3/drivers/infiniband/hw/mthca/mthca_memfree.c
(mode:100644 sha1:3ac0037726ef46bac15f9526b3601e45530ef4db)
+++
08f289d66edcfbcde6c82f2c70ce8c836c336b8f/drivers/infiniband/hw/mthca/mthca_memfree.c
(mode:100644 sha1:e650a32c941bbbd5746239f1c3499c58782726db)
@@ -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