Skip to content
Snippets Groups Projects
Commit ef4f4f1f authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Tom Rini
Browse files

bootm: fix wrong conditions about images overlap


It doesn't need to consider start byte address.
If ramdisk size is 0x800000 and start address is 0x2700000, then it's
used until 0x02efffff, not 0x02f00000. But it's detected to overlapt RD
image, when kernel start address is 0x02f00000.
Because it's doing wrong calculation about rd_len.
This patch fixed wrong calculation address position when check
condition.

In addition, it needs to check one more condition about overlapping
entire area.

Fixes: commit fbde7589 ("common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image")

Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 27422750
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment