]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: destroy stream on sample_flags mismatch
authorMatthew Auld <matthew.auld@intel.com>
Mon, 27 Mar 2017 20:34:59 +0000 (21:34 +0100)
committerMika Kuoppala <mika.kuoppala@intel.com>
Tue, 28 Mar 2017 07:31:51 +0000 (10:31 +0300)
commited2310c07dbc300d2790149c538dbbb48ab48127
treee5c40f8d2c6f5c4892b8dc57112a8ec390cae954
parent0edf4112041476ff5dc0eeda1fd246d7c534b902
drm/i915/perf: destroy stream on sample_flags mismatch

If we were to ever encounter a sample_flags mismatch we need to ensure
we destroy the stream when we bail.

Fixes: 908bd8d0930f ("drm/i915: Enable i915 perf stream for Haswell OA unit")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327203459.18398-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_perf.c