aboutsummaryrefslogtreecommitdiff
path: root/drivers/pmdomain/renesas/r8a77980-sysc.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2024-01-19 02:47:41 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2024-01-22 16:06:20 +0100
commit768c04ccb9013c0eab51dd31f63474ef8a7456db (patch)
tree3abc9a494a0568fa21360a64586b59c181e7345b /drivers/pmdomain/renesas/r8a77980-sysc.c
parent05170c8598f1edccc5948fe797a40125d55c4f65 (diff)
pmdomain: imx8mp-blk-ctrl: Error out if domains are missing in DT
This driver assumes that domain->power_dev is non-NULL in its suspend/resume path. The assumption is valid, since all the devices that are being looked up here should be described in DT. In case they are not described in DT, because the DT is faulty, suspend/resume attempt would trigger NULL pointer dereference. To avoid this failure, check whether the power_dev assignment is not NULL right away in probe callback and fail early if it is. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20240119014807.268694-1-marex@denx.de Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/pmdomain/renesas/r8a77980-sysc.c')
0 files changed, 0 insertions, 0 deletions