i40iw: Free QP PBLEs when the QP is destroyed
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Thu, 6 Jul 2017 02:25:33 +0000 (21:25 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:49 +0000 (11:20 -0400)
commitaf56e53ccd29bda062a1ae75276dc9c0f8eedf47
tree32882d7692b222f493cd5a79412dff6b983994bb
parent44b99f88cdd5b47046c511aa64ae71ad2c9e5b1e
i40iw: Free QP PBLEs when the QP is destroyed

If the physical buffer list entries (PBLEs) of a QP are freed
up at i40iw_dereg_mr, they can be assigned to a newly
created QP before the previous QP is destroyed. Fix this
by freeing PBLEs only when the QP is destroyed.

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c
drivers/infiniband/hw/i40iw/i40iw_verbs.h