[U-Boot] [Patch v2] drivers/ddr: Fix possible out of bounds error