[PATCH v3 2/2] riscv: memcpy: check src and dst before copy

Leo Liang ycliang at andestech.com
Tue Jan 31 16:00:05 CET 2023


On Wed, Jan 04, 2023 at 09:56:28AM +0800, Rick Chen wrote:
> 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 at andestech.com>
> ---
> Changes in v3
> - new patch: separate from [1/2]
> ---
>  arch/riscv/lib/memcpy.S | 2 ++
>  1 file changed, 2 insertions(+)
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list