diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-11 23:43:29 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-04-24 16:11:21 -0700 |
commit | bf6b47deb40f9fc8ddb4573373dc9614aab59d35 (patch) | |
tree | 866e0dedc84ce00105a009b701e8801b6fbe1622 /firmware/e100 | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
IB/mlx4: Fix memory leaks in ib_link_query_port()
If the call to mlx4_MAD_IFC() fails in ib_link_query_port() we will
currently do 'return err;' which will leak 'in_mad' and 'out_mad'. We
should instead do 'goto out;' where we'll properly free the memory we
previously allocated.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'firmware/e100')
0 files changed, 0 insertions, 0 deletions