]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/uverbs: Fix leak of XRC target QPs
authorTariq Toukan <tariqt@mellanox.com>
Thu, 27 Oct 2016 13:36:26 +0000 (16:36 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 29 May 2017 00:46:50 +0000 (17:46 -0700)
commitf2192d923db416729f956ed33c41f2356d969bc8
treeb83e1ff4250bfd46e23dd4d8d5523ba184aa907f
parent95e38bcee09b63c1aaebf323a08ce1b5ed99fc08
IB/uverbs: Fix leak of XRC target QPs

The real QP is destroyed in case of the ref count reaches zero, but
for XRC target QPs this call was missed and caused to QP leaks.

Let's call to destroy for all flows.

Orabug: 24761732

Fixes: 0e0ec7e0638e ('RDMA/core: Export ib_open_qp() to share XRC...')
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
(cherry picked from commit 5b810a242c28e1d8d64d718cebe75b79d86a0b2d)
Signed-off-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
drivers/infiniband/core/uverbs_main.c