Skip to content
Commit 3d28c18a authored by Wentong Wu's avatar Wentong Wu Committed by Anas Nashif
Browse files

spi: pass correct buffer to spi driver given NULL to spi_transceive



When pass NULL to spi_transceive with user space enabled, stack buffer
is still passed to spi driver and it will cause kinds of problems like
MPU fault, so change it to pass relevant NULL pointers in the actual
transceive call.

Fixes: #20811.

Signed-off-by: default avatarWentong Wu <wentong.wu@intel.com>
parent 77c455ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment