
8 Jan
2016
8 Jan
'16
5:51 p.m.
On 8 January 2016 at 12:56, Gong Qianyu Qianyu.Gong@nxp.com wrote:
From: Gong Qianyu Qianyu.Gong@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@freescale.com
Reviewed-by: Jagan Teki jteki@openedev.com
--
Jagan.