]> git.dujemihanovic.xyz Git - u-boot.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)
commitecab65e4cdec0ee408ca1ac9d0b06d2793fdae91
tree2303c7514bb18b1aa33da390ab6667788796deca
parent224f745247045262f9c4ca9e379be1002204e4ea
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