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>
Loading
Please register or sign in to comment