Skip to content
Commit 00740c58 authored by Borislav Petkov's avatar Borislav Petkov
Browse files

amd64_edac: Fix driver module removal



f4347553 removed the edac polling
mechanism in favor of using a notifier chain for conveying MCE
information to edac. However, the module removal path didn't test
whether the driver had setup the polling function workqueue at all and
the rmmod process was hanging in the kernel at try_to_del_timer_sync()
in the cancel_delayed_work() path, trying to cancel an uninitialized
work struct.

Fix that by adding a balancing check to the workqueue removal path.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent b30a3f62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment