summaryrefslogtreecommitdiff
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-08-21 15:30:19 +0300
committerTomeu Vizoso <tomeu@tomeuvizoso.net>2025-09-01 12:11:28 +0200
commit09e6d39cc83b18a17857b8d4d6a8902bc87dfbc2 (patch)
tree75820fd48aae5c6d372311e907e7a4cdb930988f /rust/helpers/bug.c
parent78e399955d352a2387a4b22713385a0c5d737685 (diff)
accel/rocket: Fix some error checking in rocket_core_init()
The problem is that pm_runtime_get_sync() can return 1 on success so checking for zero doesn't work. Use the pm_runtime_resume_and_get() function instead. The pm_runtime_resume_and_get() function does additional cleanup as well so that's a bonus as well. Fixes: 0810d5ad88a1 ("accel/rocket: Add job submission IOCTL") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net> Link: https://lore.kernel.org/r/aKcRW6fsRP_o5C_y@stanley.mountain
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions