Re: [PATCH 1/3] RDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd()

2015-05-31 Thread Devesh Sharma
Acked-By: Devesh Sharma On Sat, May 30, 2015 at 8:56 PM, Doug Ledford wrote: > On Fri, 2015-05-29 at 23:10 -0700, Roland Dreier wrote: >> From: Roland Dreier >> >> If ocrdma_get_pd_num() fails, then we need to free the pd struct we >> allocated. >> >> This was detected by Coverity (CID 1271245

Re: [PATCH 1/3] RDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd()

2015-05-30 Thread Doug Ledford
On Fri, 2015-05-29 at 23:10 -0700, Roland Dreier wrote: > From: Roland Dreier > > If ocrdma_get_pd_num() fails, then we need to free the pd struct we allocated. > > This was detected by Coverity (CID 1271245). > > Signed-off-by: Roland Dreier Thanks, series applied. > --- > drivers/infiniba

[PATCH 1/3] RDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd()

2015-05-29 Thread Roland Dreier
From: Roland Dreier If ocrdma_get_pd_num() fails, then we need to free the pd struct we allocated. This was detected by Coverity (CID 1271245). Signed-off-by: Roland Dreier --- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git