]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Do not set self-referencing pointer to NULL after kfree
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 23 Aug 2016 00:01:47 +0000 (19:01 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 24 Aug 2016 15:25:34 +0000 (11:25 -0400)
commit83b5d71c1f2d6d1dbc5e98a5adff0fa6c5ae2bea
treee1b47dcc88e26ab30f658651c1a681056f1e13c0
parent92d2bbcbaf19d3ebc733450369a7c70c25d67dbc
i40iw: Do not set self-referencing pointer to NULL after kfree

In i40iw_free_virt_mem(), do not set mem->va to NULL
after freeing it as mem->va is a self-referencing pointer
to mem.

Fixes: 59999859a36e ("i40iw: add hw and utils files")
Reported-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_utils.c