]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipmi: ssif_bmc: cancel response timer on remove
authorJian Zhang <zhangjian.3032@bytedance.com>
Fri, 3 Apr 2026 09:05:58 +0000 (17:05 +0800)
committerCorey Minyard <corey@minyard.net>
Fri, 3 Apr 2026 12:49:45 +0000 (07:49 -0500)
commit7fc3e2546cf3fa9a28a2acc92a512c779a8e5038
tree721e87aca170efb67cd197337f203c3553a90555
parent122d16da1313f1746a4cdd31a620bbb141be7060
ipmi: ssif_bmc: cancel response timer on remove

The response timer can stay armed across device teardown. If it fires after
remove, the callback dereferences the SSIF context and the i2c client after
teardown has started.

Cancel the timer in remove so the callback cannot run after the device is
unregistered.

Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
Message-ID: <20260403090603.3988423-1-zhangjian.3032@bytedance.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ssif_bmc.c