We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde046e commit 7afccdeCopy full SHA for 7afccde
arch/arm64/kernel/machine_kexec.c
@@ -104,13 +104,15 @@ static void *kexec_page_alloc(void *arg)
104
{
105
struct kimage *kimage = (struct kimage *)arg;
106
struct page *page = kimage_alloc_control_pages(kimage, 0);
107
+ void *vaddr = NULL;
108
109
if (!page)
110
return NULL;
111
- memset(page_address(page), 0, PAGE_SIZE);
112
+ vaddr = page_address(page);
113
+ memset(vaddr, 0, PAGE_SIZE);
114
- return page_address(page);
115
+ return vaddr;
116
}
117
118
int machine_kexec_post_load(struct kimage *kimage)
0 commit comments