diff options
| author | Gong Qianyu <[email protected]> | 2016-01-26 15:06:40 +0800 |
|---|---|---|
| committer | York Sun <[email protected]> | 2016-01-27 08:28:04 -0800 |
| commit | 5207014deb1a465d2ac808254902100e7ea69d75 (patch) | |
| tree | e4f2f5d7483e9c8a330d02b8d37628982121fb86 /include | |
| parent | c2a4cb17b4ff194e905df76b9f7c1b5a00b99b25 (diff) | |
spi: fsl_qspi: Fix qspi_op_rdid memcpy issue
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 <[email protected]>
Reviewed-by: York Sun <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
