Commit 6f10c4d6 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/perf: replace BUG_ON() with WARN_ON()

parent 8482af4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1376,7 +1376,8 @@ static void i915_oa_stream_destroy(struct i915_perf_stream *stream)
{
	struct i915_perf *perf = stream->perf;

	BUG_ON(stream != perf->exclusive_stream);
	if (WARN_ON(stream != perf->exclusive_stream))
		return;

	/*
	 * Unset exclusive_stream first, it will be checked while disabling