From: Chris Wilson Date: Sat, 16 May 2020 19:09:40 +0000 (+0100) Subject: drm/i915/display: Return error from dbuf allocation failure X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=cba597ac45170469a9a60c06d20d64b5af5dc48c;p=kernel.git drm/i915/display: Return error from dbuf allocation failure drivers/gpu/drm/i915/intel_pm.c:5920 skl_ddb_add_affected_pipes() error: uninitialized symbol 'ret'. Fixes: 3cf43cdc63fb ("drm/i915: Introduce proper dbuf state") Signed-off-by: Chris Wilson Cc: Stanislav Lisovskiy Cc: Ville Syrjälä Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20200516190940.12675-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 0082582d8352b..5ebc1585622ed 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -5941,7 +5941,7 @@ skl_ddb_add_affected_pipes(struct intel_atomic_state *state) new_dbuf_state = intel_atomic_get_dbuf_state(state); if (IS_ERR(new_dbuf_state)) - return ret; + return PTR_ERR(new_dbuf_state); old_dbuf_state = intel_atomic_get_old_dbuf_state(state);