Re: [PATCH 2/2] RDMA/rtrs: check before free

2020-10-01 Thread Jinpu Wang
On Thu, Oct 1, 2020 at 9:27 AM Gioh Kim wrote: > > From: Gioh Kim > > If rtrs_iu_alloc failed to allocate buffer or map dma, > there are some allocated addresses and some NULL addresses > in the array. rtrs_iu_free should check data before free. > > Signed-off-by: Gioh Kim > --- > drivers/infin

[PATCH 2/2] RDMA/rtrs: check before free

2020-10-01 Thread Gioh Kim
From: Gioh Kim If rtrs_iu_alloc failed to allocate buffer or map dma, there are some allocated addresses and some NULL addresses in the array. rtrs_iu_free should check data before free. Signed-off-by: Gioh Kim --- drivers/infiniband/ulp/rtrs/rtrs.c | 8 ++-- 1 file changed, 6 insertions(+