OSDN Git Service

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)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Feb 2018 16:57:21 +0000 (11:57 -0500)
commit6b4521f5174c26020ae0deb3ef7f2c28557cf445
treebf521bc40449f94ed64c1e164c503e4787f19016
parent7ff662b76167fd9a68254352287c5de0dc698942
RDMA/bnxt_re: Unpin SQ and RQ memory if QP create fails

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>
drivers/infiniband/hw/bnxt_re/ib_verbs.c