On Wed, Feb 13, 2019 at 07:07:05PM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > There is no need to call kfree(pd) because ib_dealloc_pd() > internally frees PD. > > Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by IB/core") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/uverbs_cmd.c | 1 + > 1 file changed, 1 insertion(+) > Jason, Doug, I see that this patch is accepted https://patchwork.kernel.org/patch/10810421/, but don't see it in the tree. https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/tree/drivers/infiniband/core/uverbs_cmd.c?h=wip/jgg-for-next#n444 Thanks
Attachment:
signature.asc
Description: PGP signature