diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2020-06-15 08:12:20 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2020-07-17 17:10:34 +0200 |
commit | c5d5a32ead1e3a61a07a1e59eb52a53e4a6b2a7f (patch) | |
tree | 1a42966580e46728ed331b64ae5e6e515eb3a4d8 /virt | |
parent | drm/etnaviv: Simplify clock enable/disable (diff) | |
download | linux-c5d5a32ead1e3a61a07a1e59eb52a53e4a6b2a7f.tar.xz linux-c5d5a32ead1e3a61a07a1e59eb52a53e4a6b2a7f.zip |
drm/etnaviv: fix ref count leak via pm_runtime_get_sync
in etnaviv_gpu_submit, etnaviv_gpu_recover_hang, etnaviv_gpu_debugfs,
and etnaviv_gpu_init the call to pm_runtime_get_sync increments the
counter even in case of failure, leading to incorrect ref count.
In case of failure, decrement the ref count before returning.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions