Skip to content
Snippets Groups Projects
Commit 777aaaa7 authored by This contributor prefers not to receive mails's avatar This contributor prefers not to receive mails Committed by Tom Rini
Browse files

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: default avatarPali Rohár <pali@kernel.org>
parent 7210e457
Loading
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