diff options
| author | Martin Kepplinger <[email protected]> | 2023-04-25 11:47:47 +0200 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2023-05-25 16:21:23 +0200 |
| commit | 04fc06f6dc1592ed5d675311ac50d8fba5db62ab (patch) | |
| tree | d7a192d4dab6511e02553ac19c02045c3d7de858 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e103484c76ab0898e6cf5067b1e3d45019a4fe0b (diff) | |
media: hi846: fix usage of pm_runtime_get_if_in_use()
pm_runtime_get_if_in_use() does not only return nonzero values when
the device is in use, it can return a negative errno too.
And especially during resuming from system suspend, when runtime pm
is not yet up again, -EAGAIN is being returned, so the subsequent
pm_runtime_put() call results in a refcount underflow.
Fix system-resume by handling -EAGAIN of pm_runtime_get_if_in_use().
Signed-off-by: Martin Kepplinger <[email protected]>
Fixes: e8c0882685f9 ("media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera")
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions