aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLyude Paul <[email protected]>2018-07-12 13:02:52 -0400
committerBen Skeggs <[email protected]>2018-07-16 18:06:29 +1000
commit922a8c82fafdec99688bbaea6c5889f562a42cdc (patch)
tree1b4d771662b7864bb355d010326868b5a4cb97c6 /tools/perf/util/trace-event-scripting.c
parenteaeb9010bb4bcdc20e58254fa42f3fe730a7f908 (diff)
drm/nouveau: Fix runtime PM leak in drm_open()
Noticed this as I was skimming through, if we fail to allocate memory for cli we'll end up returning without dropping the runtime PM ref we got. Additionally, we'll even return the wrong return code! (ret most likely will == 0 here, we want -ENOMEM). Signed-off-by: Lyude Paul <[email protected]> Reviewed-by: Lukas Wunner <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions