Skip to content

Commit

Permalink
RDMA/qedr: Fix memory leak in iWARP CM
Browse files Browse the repository at this point in the history
[ Upstream commit a2267f8 ]

Fixes memory leak in iWARP CM

Fixes: e411e05 ("RDMA/qedr: Add iWARP connection management functions")
Link: https://lore.kernel.org/r/20201021115008.28138-1-palok@marvell.com
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
alokprasad7 authored and gregkh committed Nov 5, 2020
1 parent d90dd15 commit da8e2fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/qedr/qedr_iw_cm.c
Expand Up @@ -727,6 +727,7 @@ int qedr_iw_destroy_listen(struct iw_cm_id *cm_id)
listener->qed_handle);

cm_id->rem_ref(cm_id);
kfree(listener);
return rc;
}

Expand Down

0 comments on commit da8e2fb

Please sign in to comment.