"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "ee1d8040a6b0a8106c7d9e80b9193077224493ba"
of: Use proper types for checking memory overflow
Commit a67a6ed1 (of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch) corrected early_init_dt_add_memory_arch to account for overflows but did so in an unclean way using ULONG_MAX. There is no guarantee that sizeof(unsigned long) == sizeof(phys_addr_t). Check against phys_addr_t instead. Signed-off-by:Laura Abbott <lauraa@codeaurora.org> Tested-by:
Geert Uytterhoeven <geert@linux-m68k.org> Acked-by:
Nicolas Pitre <nico@linaro.org> Signed-off-by:
Grant Likely <grant.likely@linaro.org>
Loading
Please register or sign in to comment