Re: [PATCH] arm64: change to use memmove in efi-stub

2015-10-18 Thread yalin wang
Got it , Thanks for your explanation . > On Oct 16, 2015, at 18:57, Mark Rutland wrote: > > Hi, > > On Fri, Oct 16, 2015 at 06:46:07PM +0800, yalin wang wrote: >> Change to use memmove(), in case the dest address overlap with the >> source address. > > This cannot happen, and memove would not

Re: [PATCH] arm64: change to use memmove in efi-stub

2015-10-16 Thread Mark Rutland
Hi, On Fri, Oct 16, 2015 at 06:46:07PM +0800, yalin wang wrote: > Change to use memmove(), in case the dest address overlap with the > source address. This cannot happen, and memove would not be sufficient if it did. The destination is a region returned by EFI_BOOT_SERVICES.AllocatePages, which

[PATCH] arm64: change to use memmove in efi-stub

2015-10-16 Thread yalin wang
Change to use memmove(), in case the dest address overlap with the source address. Signed-off-by: yalin wang --- arch/arm64/kernel/efi-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/efi-stub.c b/arch/arm64/kernel/efi-stub.c index 816120e..b6dc44b 100