OSDN Git Service

drm/i915/display: Return error from dbuf allocation failure
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 16 May 2020 19:09:40 +0000 (20:09 +0100)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 May 2020 17:54:20 +0000 (20:54 +0300)
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 <chris@chris-wilson.co.uk>
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200516190940.12675-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_pm.c

index 0082582..5ebc158 100644 (file)
@@ -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);