linux-kernel-test/drivers/infiniband/hw/mlx4
Jesper Juhl bf6b47deb4 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>
2012-04-24 16:11:21 -07:00
..
ah.c IB/mlx4: Fix SL to 802.1Q priority-bits mapping for IBoE 2012-01-03 21:00:02 -08:00
cq.c Merge branches 'misc' and 'mlx4' into for-next 2012-03-12 16:25:28 -07:00
doorbell.c IB: expand ib_umem_get() prototype 2008-04-29 08:06:12 -07:00
Kconfig mlx4: Fix infiniband Kconfig dependencies. 2011-08-11 23:05:05 -07:00
mad.c IB/mlx4: pass SMP vendor-specific attribute MADs to firmware 2012-01-30 16:15:17 -08:00
main.c IB/mlx4: Fix memory leaks in ib_link_query_port() 2012-04-24 16:11:21 -07:00
Makefile
mlx4_ib.h IB/mlx4: Add support for XRC QPs 2011-10-13 09:44:18 -07:00
mr.c IB/mlx4: Limit size of fast registration WRs 2010-10-11 14:33:17 -07:00
qp.c IB/mlx4: Set bad_wr for invalid send opcode 2012-02-26 01:37:30 -08:00
srq.c IB/mlx4: Add support for XRC SRQs 2011-10-13 09:43:46 -07:00
user.h mlx4: Update/add Mellanox Technologies copyright lines to mlx4 driver files 2008-07-25 10:32:52 -07:00