summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/machine_kexec_file.c
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2019-01-11 08:40:21 +0100
committerWill Deacon <will.deacon@arm.com>2019-01-11 11:10:51 +0100
commit279667212ab2a4f36c3b0347657ddcc11f9cfa25 (patch)
tree7ec07e20c4953b8cfafe41dcc184d94ccd5fe723 /arch/arm64/kernel/machine_kexec_file.c
parentACPI/IORT: Fix rc_dma_get_range() (diff)
downloadlinux-279667212ab2a4f36c3b0347657ddcc11f9cfa25.tar.xz
linux-279667212ab2a4f36c3b0347657ddcc11f9cfa25.zip
arm64: kexec_file: return successfully even if kaslr-seed doesn't exist
In kexec_file_load, kaslr-seed property of the current dtb will be deleted any way before setting a new value if possible. It doesn't matter whether it exists in the current dtb. So "ret" should be reset to 0 here. Fixes: commit 884143f60c89 ("arm64: kexec_file: add kaslr support") Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to '')
-rw-r--r--arch/arm64/kernel/machine_kexec_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm64/kernel/machine_kexec_file.c b/arch/arm64/kernel/machine_kexec_file.c
index 10e33860e47a..f2c211a6229b 100644
--- a/arch/arm64/kernel/machine_kexec_file.c
+++ b/arch/arm64/kernel/machine_kexec_file.c
@@ -87,7 +87,9 @@ static int setup_dtb(struct kimage *image,
/* add kaslr-seed */
ret = fdt_delprop(dtb, off, FDT_PROP_KASLR_SEED);
- if (ret && (ret != -FDT_ERR_NOTFOUND))
+ if (ret == -FDT_ERR_NOTFOUND)
+ ret = 0;
+ else if (ret)
goto out;
if (rng_is_initialized()) {