diff options
| author | Lizhi Hou <lizhi.hou@amd.com> | 2026-02-26 13:38:57 -0800 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2026-03-02 09:43:22 -0800 |
| commit | 6270ee26e1edd862ea17e3eba148ca8fb2c99dc9 (patch) | |
| tree | 9de6f025be510c7a18a58ccf3170acba41b3bead /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 2e3649e237237258a08d75afef96648dd2b379f7 (diff) | |
accel/amdxdna: Fix NULL pointer dereference of mgmt_chann
mgmt_chann may be set to NULL if the firmware returns an unexpected
error in aie2_send_mgmt_msg_wait(). This can later lead to a NULL
pointer dereference in aie2_hw_stop().
Fix this by introducing a dedicated helper to destroy mgmt_chann
and by adding proper NULL checks before accessing it.
Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260226213857.3068474-1-lizhi.hou@amd.com
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
