RE: [PATCH] drm/i915/psr: Init variable to avoid early exit from et alignment loop

Garg, Nemesa
2026-04-13T12:38:55Z

> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Jouni
> Högander
> Sent: Monday, April 13, 2026 4:54 PM
> To: intel-gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org
> Cc: Hogander, Jouni <jouni.hogander@intel.com>; stable@vger.kernel.org
> Subject: [PATCH] drm/i915/psr: Init variable to avoid early exit from et
> alignment loop
>
> Uninitialized boolean variable may cause unwanted exit from et alignment
> loop. Fix this by initializing it as false.
>
> Fixes: 681e12440d8b ("drm/i915/psr: Repeat Selective Update area
> alignment")
> Cc: <stable@vger.kernel.org> # v6.9+
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> b/drivers/gpu/drm/i915/display/intel_psr.c
> index b4ca5843d098..63c19958a9e3 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -3002,7 +3002,7 @@ int intel_psr2_sel_fetch_update(struct
> intel_atomic_state *state,
> return ret;
>
> do {
> - bool cursor_in_su_area;
> + bool cursor_in_su_area = false;
>
LGTM,
Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
> /*
> * Adjust su area to cover cursor fully as necessary
> --
> 2.43.0