From: Ismail, Mustafa Date: Mon, 18 Apr 2016 15:32:58 +0000 (-0500) Subject: RDMA/i40iw: Do not set self-referencing pointer to NULL after free X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36a479335051ea5ad552f8234722a908179fc8f0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Faisal Latif Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 2534c5d1d7ec..aa297365cdde 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -437,7 +437,6 @@ void i40iw_free_qp_resources(struct i40iw_device *iwdev, kfree(iwqp->kqp.wrid_mem); iwqp->kqp.wrid_mem = NULL; kfree(iwqp->allocated_buffer); - iwqp->allocated_buffer = NULL; } /**