]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: xlnx: Only access buffer information if IPI is buffered
authorBen Levinsky <ben.levinsky@amd.com>
Tue, 3 Mar 2026 23:51:27 +0000 (15:51 -0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 10 Mar 2026 15:22:18 +0000 (09:22 -0600)
commit38dd6ccfdfbbe865569a52fe1ba9fa1478f672e6
treeaae9fd53c5daf2a425c73610d54f58fd67a59ea4
parentd20c27dc8141c90a27927b1343ec2131f864fbb3
remoteproc: xlnx: Only access buffer information if IPI is buffered

In the receive callback check if message is NULL to prevent
possibility of crash by NULL pointer dereferencing.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Fixes: 5dfb28c257b7 ("remoteproc: xilinx: Add mailbox channels for rpmsg")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20260303235127.2317955-3-tanmay.shah@amd.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/xlnx_r5_remoteproc.c