From: Roland Dreier Date: Sun, 18 Jun 2006 03:37:41 +0000 (-0700) Subject: IB/mthca: Fix memory leak on modify_qp error paths X-Git-Tag: v2.6.18-rc1~1110^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9c5d9feef86debee4d8e77a738ad86877cf371a;p=pandora-kernel.git IB/mthca: Fix memory leak on modify_qp error paths Some error paths after the mthca_alloc_mailbox() call in mthca_modify_qp() just do a "return -EINVAL" without freeing the mailbox. Convert these returns to "goto out" to avoid leaking the mailbox storage. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed