Skip to content

Commit f33fb70

Browse files
Wang Wenshenggregkh
authored andcommitted
arm64: kexec: Remove duplicate allocation for trans_pgd
[ Upstream commit ee020bf ] trans_pgd would be allocated in trans_pgd_create_copy(), so remove the duplicate allocation before calling trans_pgd_create_copy(). Fixes: 3744b52 ("arm64: kexec: install a copy of the linear-map") Signed-off-by: Wang Wensheng <wsw9603@163.com> Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent bcfdf15 commit f33fb70

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/arm64/kernel/machine_kexec.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ int machine_kexec_post_load(struct kimage *kimage)
129129
}
130130

131131
/* Create a copy of the linear map */
132-
trans_pgd = kexec_page_alloc(kimage);
133-
if (!trans_pgd)
134-
return -ENOMEM;
135132
rc = trans_pgd_create_copy(&info, &trans_pgd, PAGE_OFFSET, PAGE_END);
136133
if (rc)
137134
return rc;

0 commit comments

Comments
 (0)