]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/hfi1: Fix possible panic during hotplug remove
authorDouglas Miller <doug.miller@cornelisnetworks.com>
Wed, 2 Aug 2023 17:32:41 +0000 (13:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:22:01 +0000 (18:22 +0200)
commit918c1e6843b7e81d0e5cf7994f41f28dc34c98b0
tree0cfeca22a50e98730c15e134bdb40f6e43e83806
parentdf21468bfdc885f2495c01f5bb3e3431f0c07306
IB/hfi1: Fix possible panic during hotplug remove

commit 4fdfaef71fced490835145631a795497646f4555 upstream.

During hotplug remove it is possible that the update counters work
might be pending, and may run after memory has been freed.
Cancel the update counters work before freeing memory.

Fixes: 7724105686e7 ("IB/hfi1: add driver files")
Signed-off-by: Douglas Miller <doug.miller@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Link: https://lore.kernel.org/r/169099756100.3927190.15284930454106475280.stgit@awfm-02.cornelisnetworks.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/hfi1/chip.c