]> git.baikalelectronics.ru Git - uboot.git/commit
misc: imx: scu: avoid write null pointer
authorPeng Fan <peng.fan@nxp.com>
Sat, 15 Dec 2018 12:19:49 +0000 (12:19 +0000)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jan 2019 16:03:45 +0000 (17:03 +0100)
commit80e796463ad590d708ada3eeeb1a9f24881c4fd5
tree2303c7514bb18b1aa33da390ab6667788796deca
parent9070c15899bc5935cb78d950fb18313bc98f1c27
misc: imx: scu: avoid write null pointer

When boot_dev is true, fill boot device. However the original logic is when
boot_dev is false, fill boot device, this will trigger data abort.

Also fix sc_misc_get_control when using pointer val.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/misc/imx8/scu_api.c