diff options
| author | Max Zhen <max.zhen@amd.com> | 2026-04-16 13:11:06 -0700 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2026-04-17 09:13:53 -0700 |
| commit | 506255d46bdb93a281cf39e72abbca124f5c7a1b (patch) | |
| tree | 396a630c19ce9aa463ea09b1871760be6a166a7f /include | |
| parent | d8c33b9c4bfc1349cfdcf180e708ba55e5e28ce9 (diff) | |
accel/amdxdna: Guard management mailbox channel cleanup against NULL pointer
The management mailbox channel cleanup helpers can be called from
error handling paths when mgmt_chann has already been destroyed.
Add NULL checks to xdna_mailbox_free_channel() and
xdna_mailbox_stop_channel() so the cleanup path safely returns instead
of dereferencing a NULL mailbox channel pointer.
Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260416201106.1046072-1-lizhi.hou@amd.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
