Re: [PATCHv2 1/1] IB/rxe: avoid srq memory leak

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

 



On Sun, Sep 30, 2018 at 02:27:16AM -0400, Zhu Yanjun wrote:
> In rxe_queue_init, q and q->buf are allocated. In do_mmap_info,
> q->ip is allocated. When error occurs, rxe_srq_from_init and
> the later error handler do not free these allocated memories.
> This will make memory leak.
> 
> CC: Srinivas Eeda <srinivas.eeda@xxxxxxxxxx>
> CC: Junxiao Bi <junxiao.bi@xxxxxxxxxx>
> Signed-off-by: Zhu Yanjun <yanjun.zhu@xxxxxxxxxx>
> ---
> V1->V2: Add vmalloc.h
> ---
>  drivers/infiniband/sw/rxe/rxe_srq.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

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