]> git.dujemihanovic.xyz Git - u-boot.git/commit
ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched
authorDinesh Maniyam <dinesh.maniyam@intel.com>
Wed, 1 Jun 2022 10:49:02 +0000 (18:49 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 17 Jun 2022 08:27:05 +0000 (16:27 +0800)
commit32e0379143b433e29d76404f5f4c279067e48853
tree03a3fa2d78b6d9cc36e3af1b34c692e112e61ae4
parentd192adafebcd5e742a229aedbdcc7d6957d68f02
ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched

Convert the constant integer to 'phys_size_t' to avoid overflow
when calculating the SDRAM size.

Signed-off-by: Dinesh Maniyam <dinesh.maniyam@intel.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
drivers/ddr/altera/sdram_soc64.c