[U-Boot] [Patch V3 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue
Jagan Teki
jteki at openedev.com
Fri Jan 8 17:51:19 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 everytime we memcpy 4 bytes to the dest memory
> regardless of the remaining length.
> This patch adds checking the remaining length before memcpy.
> If the length is shorter than 4 bytes, memcpy the actual length of data
> to the dest memory.
>
> 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