On Wed, May 13, 2020 at 12:37:41PM +0300, Dan Carpenter wrote: > The "srq_out" pointer is never freed so that causes a memory leak. It's > never used and can be deleted. Freeing "out" will lead to a double in > mlx5_ib_query_srq(). > > Fixes: 31578defe4eb ("RDMA/mlx5: Update mlx5_ib to use new cmd interface") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/srq_cmd.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > Thanks for the report, the change should be slightly different. I'm sending fix right now.