From: Tariq Toukan Date: Thu, 27 Oct 2016 13:36:26 +0000 (+0300) Subject: IB/uverbs: Fix leak of XRC target QPs X-Git-Tag: v3.2.85~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24d23cd017402dbb0c785bcaff94f2d613ffd23;p=pandora-kernel.git 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 Signed-off-by: Noa Osherovich Signed-off-by: Leon Romanovsky Signed-off-by: Doug Ledford Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed