Commit ee020bf6 authored by Wang Wensheng's avatar Wang Wensheng Committed by Catalin Marinas
Browse files

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: 3744b528 ("arm64: kexec: install a copy of the linear-map")
Signed-off-by: default avatarWang Wensheng <wsw9603@163.com>
Reviewed-by: default avatarPasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 5e0deb0a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -129,9 +129,6 @@ int machine_kexec_post_load(struct kimage *kimage)
	}

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