aboutsummaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-09-09 17:32:39 +0200
committerTom Rini <trini@konsulko.com>2022-09-23 15:11:13 -0400
commit777aaaa706bcfe08c284aed06886db7d482af3f8 (patch)
tree54d4c06f52dfcb11f56efb7d276e132c559c6127 /include/init.h
parent7210e457d5d166b4409bde402fd95a99e87cdfc5 (diff)
downloadu-boot-777aaaa706bcfe08c284aed06886db7d482af3f8.zip
u-boot-777aaaa706bcfe08c284aed06886db7d482af3f8.tar.gz
u-boot-777aaaa706bcfe08c284aed06886db7d482af3f8.tar.bz2
common/memsize.c: Fix get_effective_memsize() to check for overflow
Ensure that top of RAM can be represented by phys_size_t type. If RAM is too large or RAM base address is too upper then limit RAM size to prevent address space overflow. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'include/init.h')
0 files changed, 0 insertions, 0 deletions