[PATCH] ddr: socfpga: Fix integer overflow that caused DDR size mismatched

Tan, Ley Foon ley.foon.tan at intel.com
Wed Aug 5 11:31:16 CEST 2020



> -----Original Message-----
> From: Chee, Tien Fong <tien.fong.chee at intel.com>
> Sent: Wednesday, August 5, 2020 11:59 AM
> To: u-boot at lists.denx.de
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>; Marek Vasut
> <marex at denx.de>; See, Chin Liang <chin.liang.see at intel.com>; Tan, Ley
> Foon <ley.foon.tan at intel.com>; Lim, Elly Siew Chin
> <elly.siew.chin.lim at intel.com>; Ang, Chee Hong
> <chee.hong.ang at intel.com>; Chee, Tien Fong <tien.fong.chee at intel.com>
> Subject: [PATCH] ddr: socfpga: Fix integer overflow that caused DDR size
> mismatched
> 
> From: Tien Fong Chee <tien.fong.chee at intel.com>
> 
> Convert the constant integer to 'phys_size_t' to avoid overflow when
> calculating the SDRAM size.
> 
> Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
> ---
>  drivers/ddr/altera/sdram_soc64.c | 15 ++++++++-------
>  1 file changed, 8 insertions(+), 7 deletions(-)


Reviewed-by: Ley Foon Tan <ley.foon.tan at intel.com>

Regards
Ley Foon


More information about the U-Boot mailing list