linux/drivers/infiniband
Kamal Heib 459c5a2c20 RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path
commit d63c46734c upstream.

Fix memory leak in the error path of mlx5_ib_create_srq() by making sure
to free the allocated srq.

Fixes: c2b37f7648 ("IB/mlx5: Fix integer overflows in mlx5_ib_create_srq")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:05:39 +00:00
..
core RDMA/uverbs: Don't fail in creation of multiple flows 2018-11-20 18:05:34 +00:00
hw RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path 2018-11-20 18:05:39 +00:00
ulp IB/isert: fix T10-pi check mask setting 2018-11-20 18:05:08 +00:00
Kconfig Merge branch 'ip-roce' into for-next 2014-01-22 23:24:21 -08:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00