Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2714eb5a authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds
Browse files

[PATCH] IB/mthca: release mutex on doorbell alloc error path



Release mutex on error return path from mthca_alloc_db().

Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 55645e9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)