]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit458228c98486f6ee240a542eaa545ced97f30de5
treeb12ef2440b5c39d3693b46af28d42d8b08f4ca27
parent6ba93328a12c66073b7d52ae6ac7dd1f0e6e8fc6
RDMA/bnxt_re: Unpin SQ and RQ memory if QP create fails

BugLink: http://bugs.launchpad.net/bugs/1786352
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c