[U-Boot] [Patch V7 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue
york sun
york.sun at nxp.com
Wed Jan 27 18:15:58 CET 2016
On 01/25/2016 11:15 PM, Gong Qianyu wrote:
> From: Gong Qianyu <Qianyu.Gong at freescale.com>
>
> 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 at freescale.com>
> ---
> V3-V7:
> - No change.
> V2:
> - New patch.
>
> drivers/spi/fsl_qspi.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to u-boot-fsl-qoriq master. Awaiting upstream.
Thanks.
York
More information about the U-Boot
mailing list