Skip to content
Snippets Groups Projects
Commit 940d2b89 authored by Gong Qianyu's avatar Gong Qianyu Committed by York Sun
Browse files

spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue


In current driver, we always copy 4 bytes to the dest memory.
Actually the dest memory may be shorter than 4 bytes.
Add an argument to indicate the dest memory length.
Avoid writing memory outside of the bounds.

Signed-off-by: default avatarGong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 5207014d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment