Skip to content
Commit 3c60e59a authored by Rick Chen's avatar Rick Chen Committed by Leo Yu-Chi Liang
Browse files

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: default avatarRick Chen <rick@andestech.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent 5b71b7bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment