9
0
Fork 0

arm/bootm: fix initrd_start init

initrd_start need to be init to data->initrd_address and updated only if the
addr is invalid.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-08-13 02:04:23 +08:00
parent 58713d3274
commit 5bc3870d67
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ static int __do_bootm_linux(struct image_data *data, int swap)
kernel = data->os_res->start + data->os_entry;
if (data->initrd_file && data->initrd_address == UIMAGE_INVALID_ADDRESS) {
initrd_start = data->initrd_address;
if (data->initrd_file && initrd_start == UIMAGE_INVALID_ADDRESS) {
initrd_start = data->os_res->start + SZ_8M;
if (bootm_verbose(data)) {