Commit 36a47933 authored by Ismail, Mustafa's avatar Ismail, Mustafa Committed by Doug Ledford

RDMA/i40iw: Do not set self-referencing pointer to NULL after free

iwqp->allocated_buffer is a self-referencing pointer to iwqp.
Do not set iwqp->allocated_buffer to NULL after freeing it.
Signed-off-by: default avatarMustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: default avatarFaisal Latif <faisal.latif@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent bd57aeae
...@@ -437,7 +437,6 @@ void i40iw_free_qp_resources(struct i40iw_device *iwdev, ...@@ -437,7 +437,6 @@ void i40iw_free_qp_resources(struct i40iw_device *iwdev,
kfree(iwqp->kqp.wrid_mem); kfree(iwqp->kqp.wrid_mem);
iwqp->kqp.wrid_mem = NULL; iwqp->kqp.wrid_mem = NULL;
kfree(iwqp->allocated_buffer); kfree(iwqp->allocated_buffer);
iwqp->allocated_buffer = NULL;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment