]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Don't relocate non-existent initrd
authorMark Rutland <mark.rutland@arm.com>
Tue, 6 Oct 2015 17:24:37 +0000 (18:24 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 6 Oct 2015 17:33:15 +0000 (18:33 +0100)
commit98aff106c4a07b15d8ab81db02b45d4a10736a75
tree6cd7b6433b2f305c4937ca8d136b0000a459bfc6
parent6f8dbc8007bba12264b69c54207dd9e4bfec7654
arm64: Don't relocate non-existent initrd

When booting a kernel without an initrd, the kernel reports that it
moves -1 bytes worth, having gone through the motions with initrd_start
equal to initrd_end:

    Moving initrd from [4080000000-407fffffff] to [9fff49000-9fff48fff]

Prevent this by bailing out early when the initrd size is zero (i.e. we
have no initrd), avoiding the confusing message and other associated
work.

Fixes: c0a79d4ceb47a7ab ("arm64: support initrd outside kernel linear map")
Cc: Mark Salter <msalter@redhat.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c