From: Florin Malita Date: Thu, 19 Jul 2007 19:58:09 +0000 (-0400) Subject: IB/mlx4: Fix leaks in __mlx4_ib_modify_qp X-Git-Tag: v2.6.23-rc1~5^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b404317b79823ec643dfbb71d62f65a48cc178;p=pandora-kernel.git IB/mlx4: Fix leaks in __mlx4_ib_modify_qp Temporarily allocated struct mlx4_qp_context *context is leaked by several error paths. The patch takes advantage of the return value 'err' being preinitialized to -EINVAL. Spotted by Coverity (CID 1768). Signed-off-by: Florin Malita Signed-off-by: Roland Dreier --- Reading git-diff-tree failed