aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorRodrigo Vivi <[email protected]>2024-05-22 13:00:59 -0400
committerRodrigo Vivi <[email protected]>2024-05-23 11:52:56 -0400
commit46edb0a3eb16cebc2db6f9b6f7c19813d52bfcc9 (patch)
tree0c5ac3aa08f2912bd60cd26db318fada0a667a06 /tools/perf/scripts/python/export-to-sqlite.py
parent40672b792a36894aff3a337b695f6136ee6ac5d4 (diff)
drm/xe: Fix xe_pm_runtime_get_if_active return
Current callers of this function are already taking the result to a boolean and using in an if. It might be a problem because current function might return negative error codes on failure, without increasing the reference counter. In this scenario we could end up with extra 'put' call ending in unbalanced scenarios. Let's fix it, while aligning with the current xe_pm_get_if_in_use style. Tested-by: Francois Dugast <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions