commit | 4e8630b478ad74ca233b4287a8c738796f9bd207 | [log] [tgz] |
---|---|---|
author | Gong Qianyu <Qianyu.Gong@freescale.com> | Tue Jan 26 15:06:41 2016 +0800 |
committer | York Sun <york.sun@nxp.com> | Wed Jan 27 08:28:31 2016 -0800 |
tree | 07c18d216f39698f8ce8dae47a7e2c67aaf3bc7d | |
parent | a5357cae48daed4edc4b01ff742658da16be1649 [diff] |
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>