[Intel-gfx] [PATCH] i915: don't call drm_atomic_state_put on invalid pointer

2016-10-19 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 04:56:02PM +0100, Chris Wilson wrote: > On Tue, Oct 18, 2016 at 05:16:23PM +0200, Arnd Bergmann wrote: > > The introduction of reference counting on the state structures caused > > sanitize_watermarks() in i915 to break in the error handling case, > > as pointed out by gcc -

[PATCH] i915: don't call drm_atomic_state_put on invalid pointer

2016-10-18 Thread Arnd Bergmann
The introduction of reference counting on the state structures caused sanitize_watermarks() in i915 to break in the error handling case, as pointed out by gcc -Wmaybe-uninitialized drivers/gpu/drm/i915/intel_display.c: In function ‘intel_modeset_init’: include/drm/drm_atomic.h:224:2: error: â€

[PATCH] i915: don't call drm_atomic_state_put on invalid pointer

2016-10-18 Thread Chris Wilson
On Tue, Oct 18, 2016 at 05:16:23PM +0200, Arnd Bergmann wrote: > The introduction of reference counting on the state structures caused > sanitize_watermarks() in i915 to break in the error handling case, > as pointed out by gcc -Wmaybe-uninitialized > > drivers/gpu/drm/i915/intel_display.c: In fun

[PATCH] i915: don't call drm_atomic_state_put on invalid pointer

2016-10-18 Thread Eric Engestrom
On Tuesday, 2016-10-18 17:16:23 +0200, Arnd Bergmann wrote: > The introduction of reference counting on the state structures caused > sanitize_watermarks() in i915 to break in the error handling case, > as pointed out by gcc -Wmaybe-uninitialized > > drivers/gpu/drm/i915/intel_display.c: In functi