diff options
author | Gong Qianyu <Qianyu.Gong@freescale.com> | 2016-01-26 07:06:41 (GMT) |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-01-27 16:28:31 (GMT) |
commit | 940d2b89bf36c17dfc9972111b68391c35b4e9f2 (patch) | |
tree | 07c18d216f39698f8ce8dae47a7e2c67aaf3bc7d /configs/tqma6s_wru4_mmc_defconfig | |
parent | 5207014deb1a465d2ac808254902100e7ea69d75 (diff) | |
download | u-boot-940d2b89bf36c17dfc9972111b68391c35b4e9f2.tar.xz |
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: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'configs/tqma6s_wru4_mmc_defconfig')
0 files changed, 0 insertions, 0 deletions