Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: kexec: Remove duplicate allocation for trans_pgd

trans_pgd would be allocated in trans_pgd_create_copy(), so remove the
duplicate allocation before calling trans_pgd_create_copy().

Fixes: 3744b5280e67 ("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>

authored by

Wang Wensheng and committed by
Catalin Marinas
ee020bf6 5e0deb0a

-3
-3
arch/arm64/kernel/machine_kexec.c
··· 129 129 } 130 130 131 131 /* Create a copy of the linear map */ 132 - trans_pgd = kexec_page_alloc(kimage); 133 - if (!trans_pgd) 134 - return -ENOMEM; 135 132 rc = trans_pgd_create_copy(&info, &trans_pgd, PAGE_OFFSET, PAGE_END); 136 133 if (rc) 137 134 return rc;