linux/drivers/infiniband/hw
Dotan Barak fd8c10a80e IB/mlx4: Fix memory leak if QP creation failed
commit 5b420d9cf7 upstream.

When RC, UC, or RAW QPs are created, a qp object is allocated (kzalloc).
If at a later point (in procedure create_qp_common) the qp creation fails,
this qp object must be freed.

Fixes: 1ffeb2eb8b ("IB/mlx4: SR-IOV IB context objects and proxy/tunnel SQP support")
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-08-20 18:09:25 +02:00
..
cxgb3 iw_cxgb3: Fix incorrectly returning error on success 2016-03-03 15:07:10 -08:00
cxgb4 RDMA/iw_cxgb4: Fix bar2 virt addr calculation for T4 chips 2016-05-11 11:21:09 +02:00
mlx4 IB/mlx4: Fix memory leak if QP creation failed 2016-08-20 18:09:25 +02:00
mlx5 IB/mlx5: Return PORT_ERR in Active to Initializing tranisition 2016-08-20 18:09:25 +02:00
mthca Merge branch 'wr-cleanup' into k.o/for-4.4 2015-10-28 22:23:34 -04:00
nes Initial 4.4 merge window submission 2015-11-07 13:33:07 -08:00
ocrdma RDMA/ocrdma: Depend on async link events from CNA 2015-12-28 11:45:54 -05:00
qib IB/security: Restrict use of the write() interface 2016-05-04 14:48:48 -07:00
usnic usnic: correctly handle kzalloc return value 2015-10-21 16:41:19 -04:00
Makefile IB/ehca: Deprecate driver, move to staging, schedule deletion 2015-09-11 18:13:35 -04:00