From: Roland Dreier <[email protected]>
Release mutex on error return path from mthca_alloc_db().
Signed-off-by: Roland Dreier <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
25-akpm/drivers/infiniband/hw/mthca/mthca_memfree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN drivers/infiniband/hw/mthca/mthca_memfree.c~ib-mthca-release-mutex-on-doorbell-alloc-error-path drivers/infiniband/hw/mthca/mthca_memfree.c
--- 25/drivers/infiniband/hw/mthca/mthca_memfree.c~ib-mthca-release-mutex-on-doorbell-alloc-error-path 2005-04-12 03:21:44.082435352 -0700
+++ 25-akpm/drivers/infiniband/hw/mthca/mthca_memfree.c 2005-04-12 03:21:44.240411336 -0700
@@ -337,7 +337,8 @@ int mthca_alloc_db(struct mthca_dev *dev
break;
default:
- return -1;
+ ret = -EINVAL;
+ goto out;
}
for (i = start; i != end; i += dir)
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]