Skip to content
Commit f5b40431 authored by Florin Malita's avatar Florin Malita Committed by Roland Dreier
Browse files

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: default avatarFlorin Malita <fmalita@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent c2e68052
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment