2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00

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: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Ismail, Mustafa 2016-04-18 10:32:58 -05:00 committed by Doug Ledford
parent bd57aeae56
commit 36a4793350

View File

@ -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;
} }
/** /**