IB/mlx4: Fix leaks in __mlx4_ib_modify_qp
authorFlorin Malita <fmalita@gmail.com>
Thu, 19 Jul 2007 19:58:09 +0000 (15:58 -0400)
committerRoland Dreier <rolandd@cisco.com>
Sat, 21 Jul 2007 04:19:43 +0000 (21:19 -0700)
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 <fmalita@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found