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