Skip to content
Unverified Commit 8868c03f authored by Pratyush Yadav's avatar Pratyush Yadav Committed by Mark Brown
Browse files

spi: spi-mem: check if data buffers are on stack



The buffers passed in the data phase must be DMA-able. Programmers often
don't realise this requirement and pass in buffers that reside on the
stack. This can be hard to spot when reviewing code. Reject ops if their
data buffer is on the stack to avoid this.

Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220420102022.3310970-1-p.yadav@ti.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8c235cc2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment