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

2016-01-08 Thread Jagan Teki
On 8 January 2016 at 12:56, Gong Qianyu wrote: > From: Gong Qianyu > > 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. >

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

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu 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