]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
reset: starfive: jh71x0: Fix accessing the empty member on JH7110 SoC
authorChanghuang Liang <changhuang.liang@starfivetech.com>
Wed, 25 Sep 2024 11:24:42 +0000 (04:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Apr 2025 08:06:36 +0000 (10:06 +0200)
commit3918b2016d28c9b2bddd5ab194ab366a4e2310f5
tree545f48ea3c4603698838762c5a62ba302fb17a8e
parent790d30578faa8fa331a169e18ff3ea9d6fb71565
reset: starfive: jh71x0: Fix accessing the empty member on JH7110 SoC

commit 2cf59663660799ce16f4dfbed97cdceac7a7fa11 upstream.

data->asserted will be NULL on JH7110 SoC since commit 82327b127d41
("reset: starfive: Add StarFive JH7110 reset driver") was added. Add
the judgment condition to avoid errors when calling reset_control_status
on JH7110 SoC.

Fixes: 82327b127d41 ("reset: starfive: Add StarFive JH7110 reset driver")
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Acked-by: Hal Feng <hal.feng@starfivetech.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240925112442.1732416-1-changhuang.liang@starfivetech.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Jianqi Ren <jianqi.ren.cn@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/reset/starfive/reset-starfive-jh71x0.c