[U-Boot] [Patch V3 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

Jagan Teki jteki at openedev.com
Fri Jan 8 17:51:50 CET 2016


On 8 January 2016 at 12:56, Gong Qianyu <Qianyu.Gong at nxp.com> 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>

Reviewed-by: Jagan Teki <jteki at openedev.com>

-- 
Jagan.


More information about the U-Boot mailing list