diff options
author | Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> | 2017-07-06 05:25:33 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-20 18:20:49 +0300 |
commit | af56e53ccd29bda062a1ae75276dc9c0f8eedf47 (patch) | |
tree | 32882d7692b222f493cd5a79412dff6b983994bb /drivers/infiniband/hw/i40iw/i40iw_verbs.h | |
parent | 44b99f88cdd5b47046c511aa64ae71ad2c9e5b1e (diff) | |
download | linux-af56e53ccd29bda062a1ae75276dc9c0f8eedf47.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_verbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.h b/drivers/infiniband/hw/i40iw/i40iw_verbs.h index 07c3fec77de6..9067443cd311 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.h +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.h @@ -170,7 +170,7 @@ struct i40iw_qp { struct i40iw_qp_kmode kqp; struct i40iw_dma_mem host_ctx; struct timer_list terminate_timer; - struct i40iw_pbl *iwpbl; + struct i40iw_pbl iwpbl; struct i40iw_dma_mem q2_ctx_mem; struct i40iw_dma_mem ietf_mem; struct completion sq_drained; |