diff options
author | Julien Massot <julien.massot@iot.bzh> | 2021-12-16 17:06:53 +0100 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2021-12-20 09:33:16 -0700 |
commit | b0229605b1436438f24d9a97d8ecf220e0ea5900 (patch) | |
tree | 134f559c46f64daa5fa12d686298b5b9a6624593 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3bc0d1f9ef54cc3500898796b150078e6918ee21 (diff) |
remoteproc: rcar_rproc: Fix pm_runtime_get_sync error check
pm_runtime_get_sync can also return 1 on success, change
to use pm_runtime_resume_and_get which return 0 only on
success.
This bug has been discovered by Dan Carpenter by using Smatch
static checker.
Fixes: 285892a74f13 ("remoteproc: Add Renesas rcar driver")
Signed-off-by: Julien Massot <julien.massot@iot.bzh>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
[Fixed blank line between tags]
Link: https://lore.kernel.org/r/20211216160653.203768-1-julien.massot@iot.bzh
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions