linux/drivers/soc/xilinx
Prasanna Kumar T S M fdee7c66c0 soc: xilinx: Shutdown and free rx mailbox channel
A mbox rx channel is requested using mbox_request_channel_byname() in
probe. In remove callback, the rx mailbox channel is cleaned up when the
rx_chan is NULL due to incorrect condition check. The mailbox channel is
not shutdown and it can receive messages even after the device removal.
This leads to use after free. Also the channel resources are not freed.
Fix this by checking the rx_chan correctly.

Fixes: ffdbae28d9 ("drivers: soc: xilinx: Use mailbox IPI callback")
Signed-off-by: Prasanna Kumar T S M <ptsm@linux.microsoft.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20260320060445.1541017-1-ptsm@linux.microsoft.com
2026-04-30 12:50:05 +02:00
..
Kconfig pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem 2023-10-04 23:41:56 +02:00
Makefile soc: xilinx: Move power-domain driver to the genpd dir 2023-07-14 10:41:59 +02:00
xlnx_event_manager.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
zynqmp_power.c soc: xilinx: Shutdown and free rx mailbox channel 2026-04-30 12:50:05 +02:00