RDMA/bnxt_re: Unpin SQ and RQ memory if QP create fails
authorDevesh Sharma <devesh.sharma@broadcom.com>
Fri, 16 Feb 2018 05:20:10 +0000 (21:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:59 +0000 (07:51 +0200)
commitc0935f1ef990a50cc891aede2b4298038a1c5504
tree72e8bf6085fa833f8b643d657fdd69f1e1734d1e
parentc5c0632b9c7b80914f8704b10e2ebd4adf41ed2a
RDMA/bnxt_re: Unpin SQ and RQ memory if QP create fails

[ Upstream commit 6b4521f5174c26020ae0deb3ef7f2c28557cf445 ]

Driver leaves the QP memory pinned if QP create command
fails from the FW. Avoids this scenario by adding a proper
exit path if the FW command fails.

Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c