]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx8mn: buffer overflow in low_drive_gpu_freq()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 17 Apr 2023 23:37:21 +0000 (01:37 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 2 May 2023 08:57:32 +0000 (10:57 +0200)
commit76ce66408dfccb491114d721260717ae76795b4d
tree625b7bc2dff9e8dcd8f6dd08817566b4da410ec5
parentb016fcf723c976ff50c4d4b0848c89cb06158c57
imx8mn: buffer overflow in low_drive_gpu_freq()

Avoid a buffer overflow if assigned-clock-rates has less than two elements.

Fixes: 98bcdf16356c ("imx8mn: Add low drive mode support for DDR4/LPDDR4 EVK")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8m/soc.c