]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipmi:ssif: Clean up kthread on errors
authorCorey Minyard <corey@minyard.net>
Mon, 13 Apr 2026 13:00:23 +0000 (08:00 -0500)
committerCorey Minyard <corey@minyard.net>
Fri, 17 Apr 2026 11:47:40 +0000 (06:47 -0500)
commit75c486cb1bcaa1a3ec3a6438498176a3a4998ae4
tree0622025e00c0ad031c1252032936a028463f525a
parent91eb7ec7261254b6875909df767185838598e21e
ipmi:ssif: Clean up kthread on errors

If an error occurs after the ssif kthread is created, but before the
main IPMI code starts the ssif interface, the ssif kthread will not
be stopped.

So make sure the kthread is stopped on an error condition if it is
running.

Fixes: 259307074bfc ("ipmi: Add SMBus interface driver (SSIF)")
Reported-by: Li Xiao <<252270051@hdu.edu.cn>
Cc: stable@vger.kernel.org
Reviewed-by: Li Xiao <252270051@hdu.edu.cn>
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmi_ssif.c