commit | 3c60e59a4f540ae28dc51a4044f9733169cd7081 | [log] [tgz] |
---|---|---|
author | Rick Chen <rick@andestech.com> | Wed Jan 04 09:56:28 2023 +0800 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Wed Feb 01 16:17:45 2023 +0800 |
tree | 9b29b00382d54a141e2b74369a1f53de1d0affe4 | |
parent | 5b71b7bf92dd12dfb768180fc25ab4616f077642 [diff] |
riscv: memcpy: check src and dst before copy Add src and dst address checking, if they are the same address, just return and don't copy data anymore. Signed-off-by: Rick Chen <rick@andestech.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>