summaryrefslogtreecommitdiff
path: root/drivers/sysreset/sysreset-ti-sci.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-03-26 23:13:11 +0100
committerTom Rini <trini@konsulko.com>2024-04-11 09:38:57 -0600
commita4df06e41fa29ebc2b31b15ae229b2273af69fa6 (patch)
tree16252c9d012f367b0b660d4ad5224eff48a733f1 /drivers/sysreset/sysreset-ti-sci.c
parentd545fe3b82ca319f699abb40f59f7ab5f8116de5 (diff)
boot: fdt: Change type of env_get_bootm_low() to phys_addr_t
Change type of ulong env_get_bootm_low() to phys_addr_t env_get_bootm_low(). The PPC/LS systems already treat env_get_bootm_low() result as phys_addr_t, while the function itself still returns ulong. This is potentially dangerous on 64bit systems, where ulong might not be large enough to hold the content of "bootm_low" environment variable. Fix it by using phys_addr_t, similar to what env_get_bootm_size() does, which returns phys_size_t . Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'drivers/sysreset/sysreset-ti-sci.c')
0 files changed, 0 insertions, 0 deletions