Skip to content
Commit b82e2029 authored by Wentong Wu's avatar Wentong Wu Committed by Andrew Boie
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 16ba2580
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment