mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-01 05:40:27 +00:00
Merge pull request #1420 from Yann-lms/mm_cursor_size_check
xlat_v2: add a check on mm_cursor->size to avoid infinite loop
This commit is contained in:
commit
c0b7606f91
@ -784,8 +784,8 @@ void mmap_add_region_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm)
|
||||
&& mm_cursor->size)
|
||||
++mm_cursor;
|
||||
|
||||
while ((mm_cursor->base_va + mm_cursor->size - 1 == end_va)
|
||||
&& (mm_cursor->size < mm->size))
|
||||
while ((mm_cursor->base_va + mm_cursor->size - 1 == end_va) &&
|
||||
(mm_cursor->size != 0U) && (mm_cursor->size < mm->size))
|
||||
++mm_cursor;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user