summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-09-26 07:03:29 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2025-09-26 14:50:20 +0200
commitbbc3110823eca23b066e75a920bdc8118adda0d2 (patch)
treea2ef37049e11637fae98f99bddb4e34560c33310 /rust/helpers/helpers.c
parentde023206fc27e1e848e3dd54ee6fbcdc78dba6bb (diff)
pmdomain: thead: Fix error pointer vs NULL bug in th1520_pd_reboot_init()
The devm_auxiliary_device_create() returns NULL on error. It never returns error pointers. Using PTR_ERR_OR_ZERO() here means the function always returns success. Replace the PTR_ERR_OR_ZERO() call check with a NULL check. Fixes: 64581f41f4c4 ("pmdomain: thead: create auxiliary device for rebooting") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Icenowy Zheng <uwu@icenowy.me> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions