[Intel-gfx] [PATCH 2/5] drm/i915: Convert BUGs to WARNs in the video overlay code
Chris Wilson
chris at chris-wilson.co.uk
Tue Mar 31 05:27:04 PDT 2015
On Tue, Mar 31, 2015 at 10:37:22AM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> BUG is bad, just use WARN.
>
> Also drop one BUG(!overlay) since we'd oops anyway when dereferencing
> it.
Bonus points for erroring out rather than continuing to nose dive into a
crash. At least that way userspace should stop trying as well.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list