]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/uverbs: Don't do double free of allocated PD
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 13 Feb 2019 17:07:05 +0000 (19:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Feb 2019 22:00:48 +0000 (15:00 -0700)
commitbb618451544ca9152a1a213d0a2b93d231c4cce1
treec2ee489fcfdfd8c65764e7f091f8f2af6097c810
parenta2a074ef396f8738d9ee08ceefa8811381a4fe4f
RDMA/uverbs: Don't do double free of allocated PD

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@oracle.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c