aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorFei Shao <[email protected]>2024-03-21 07:08:57 +0000
committerMark Brown <[email protected]>2024-03-21 11:28:21 +0000
commita20ad45008a7c82f1184dc6dee280096009ece55 (patch)
treeb8c512981fb37efb39ca9643c8d9c16b4984cbeb /rust/helpers.c
parentspi: docs: spidev: fix echo command format (diff)
downloadkernel-a20ad45008a7c82f1184dc6dee280096009ece55.tar.gz
kernel-a20ad45008a7c82f1184dc6dee280096009ece55.zip
spi: spi-mt65xx: Fix NULL pointer access in interrupt handler
The TX buffer in spi_transfer can be a NULL pointer, so the interrupt handler may end up writing to the invalid memory and cause crashes. Add a check to trans->tx_buf before using it. Fixes: 1ce24864bff4 ("spi: mediatek: Only do dma for 4-byte aligned buffers") Signed-off-by: Fei Shao <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions