diff options
Diffstat (limited to 'arch/x86/kernel/e820_64.c')
-rw-r--r-- | arch/x86/kernel/e820_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/e820_64.c b/arch/x86/kernel/e820_64.c index 645ee5e32a27..124480c0008d 100644 --- a/arch/x86/kernel/e820_64.c +++ b/arch/x86/kernel/e820_64.c | |||
@@ -100,7 +100,7 @@ void __init free_early(unsigned long start, unsigned long end) | |||
100 | for (j = i + 1; j < MAX_EARLY_RES && early_res[j].end; j++) | 100 | for (j = i + 1; j < MAX_EARLY_RES && early_res[j].end; j++) |
101 | ; | 101 | ; |
102 | 102 | ||
103 | memcpy(&early_res[i], &early_res[i + 1], | 103 | memmove(&early_res[i], &early_res[i + 1], |
104 | (j - 1 - i) * sizeof(struct early_res)); | 104 | (j - 1 - i) * sizeof(struct early_res)); |
105 | 105 | ||
106 | early_res[j - 1].end = 0; | 106 | early_res[j - 1].end = 0; |