]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipmi:ssif: Fix a shutdown race
authorCorey Minyard <corey@minyard.net>
Thu, 10 Apr 2025 19:44:26 +0000 (14:44 -0500)
committerCorey Minyard <corey@minyard.net>
Wed, 7 May 2025 22:25:48 +0000 (17:25 -0500)
commit6bd0eb6d759b9a22c5509ea04e19c2e8407ba418
tree872ff7afa408d40989dddf411e7f1a08ea4d6e2e
parent87105e07806767b81910d165441607c1461ba2b8
ipmi:ssif: Fix a shutdown race

It was possible for the SSIF thread to stop and quit before the
kthread_stop() call because ssif->stopping was set before the
stop.  So only exit the SSIF thread is kthread_should_stop()
returns true.

There is no need to wake the thread, as the wait will be interrupted
by kthread_stop().

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_ssif.c