aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-07-04 11:43:45 +0100
committerChris Wilson <[email protected]>2019-07-04 16:04:21 +0100
commitae1c5fd72dfcb66bda5c9002aa341196c7c3e3e1 (patch)
tree59afeac4fcfbc1d85955fad0438ef33f7b721fc8 /tools/perf/scripts/python
parentbf73fc0fa9cf78e37d6ee99e8d12bfa2083594d6 (diff)
drm/i915/gtt: Handle double alloc failures
Matthew pointed out that we could face a double failure with concurrent allocations/frees, and so the assumption that the local var alloc was NULL was fraught with danger. Rather than complicate the error paths too much to add a second local for a second free, just do the second free earlier on the unwind path. Reported-by: Matthew Auld <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Cc: Matthew Auld <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions