summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-05-28 16:40:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-05-29 13:15:39 +0100
commit0c1f845772e5d6d1b1739cb938403527bc6b29e1 (patch)
tree04083e57f7dc8179291ec79897244e4a5f3a1b56 /tools/perf/scripts/python/bin/stackcollapse-record
parent81a04d2e9091832710549176db0e46d1a666f9ae (diff)
downloadlinux-0c1f845772e5d6d1b1739cb938403527bc6b29e1.tar.gz
linux-0c1f845772e5d6d1b1739cb938403527bc6b29e1.zip
drm/i915: Avoid refcount_inc on known zero count
In intel_wakeref_auto, we use refcount_inc_not_zero to detect the first use and initialise the timer. On doing so, we have to avoid using refcount_inc on that zero count as the debug code flags that as an error: refcount_t: increment on 0; use-after-free. Rearrange the code so that if we know the count is 0 and we are initialising, we explicitly set it to 1. Fixes: b27e35ae5b18 ("drm/i915: Keep user GGTT alive for a minimum of 250ms") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190528154053.22004-1-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions