From 3069f0c07f8d64ebf6ff5d2d1553e0a6dad4316e Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Mon, 7 Jul 2014 17:45:43 -0700 Subject: [PATCH] of: Use proper types for checking memory overflow Commit a67a6ed15513541579d38bcbd127e7be170710e5 (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 Tested-by: Geert Uytterhoeven Acked-by: Nicolas Pitre Signed-off-by: Grant Likely --- Reading git-format-patch failed