]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix memory leak during unexpected shutdown
authorIra Weiny <ira.weiny@intel.com>
Thu, 28 Jul 2016 19:21:26 +0000 (15:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commite645bc3cde1d92a8f578e1eb631c627b13d8c57a
treed8640d01378b5d7ffa798f00cbcd29d686d9a1d4
parent3b56efb44140b67830c0254683be49505447371f
IB/hfi1: Fix memory leak during unexpected shutdown

During an unexpected shutdown, references to tid_rb_node were NULL'ed out
without properly being released.

Fix this by calling clear_tid_node in the mmu notifier remove callback
rather than after these callbacks are called.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_exp_rcv.c