Re: [PATCH rdma-next] IB/cma: Fix ports memory leak in cma_configfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 21, 2020 at 10:26:50AM +0300, Leon Romanovsky wrote:
> From: Maor Gottlieb <maorg@xxxxxxxxxxxx>
> 
> The allocated ports structure in never freed. The free function
> should be called by release_cma_ports_group, but the group
> is never released since we don't remove its default group.
> 
> Remove default groups when device group is deleted.
> 
> Fixes: 045959db65c6 ("IB/cma: Add configfs for rdma_cm")
> Signed-off-by: Maor Gottlieb <maorg@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/cma_configfs.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Applied to for-next, thanks

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux