]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:59 +0000 (16:23 +0100)
commit81b33083ca84c12091a11abd6397b18f21207dc7
treeffa7b8e4ba7a5d06ae0182282e468fb451a1f3ec
parenta6f56e55d4e94024ea8275fe50f54d667f100a2f
IB/uverbs: Fix leak of XRC target QPs

commit 5b810a242c28e1d8d64d718cebe75b79d86a0b2d upstream.

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.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/core/uverbs_main.c