From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84B1E2EAB82; Fri, 15 May 2026 15:54:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860487; cv=none; b=GNwTxZ+d6/Yal+xzstEqlVp7+D4KvW9pFGF/KEpvvYQt+XSCW7i1iI7QYdGwzJ/LdVcDeSixeJSBLjsXH03RJqqlXYVZeCgZW7wVVYF6ndxW/GTAnobJkwZnGmNuqkaZbdB/EcByuHa8Tsc6rYaOlPyo39kke1cZcOkwitqTmd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860487; c=relaxed/simple; bh=Fvk9S0fgVDFfn7JhBx63fxMMnH75258kb8baZX7JnEs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UwQ5JXMJxGC+f6CIVZ4LW6ygYm9VlfJaez87hA0M3ClAVWYe5HVUHbfwdGcet7zcug1FI+x4N4OJ89+ALpd8mM9fzPIP24pSwXLAaGOZhlY2SIrmAkSrbalW/TsexztXethKvEmbrmY9zjven9SISkH0dxPC9RkGUBT+wTIeYZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f3egFaEE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="f3egFaEE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AA9EC2BCB0; Fri, 15 May 2026 15:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778860487; bh=Fvk9S0fgVDFfn7JhBx63fxMMnH75258kb8baZX7JnEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f3egFaEECO8En0cIYmOGWy9XClMD8wN/+q0qoWAxTarlx7zea1wzQZEW5SQbdUKY8 boL/FCUe+AiafP5JHmpYHwTumVJgQLlr4NdykZ4TlJy97T3RWYgChbhw2HbqM47Anj gaYR4bHa4xBBm/569PRlYWDet4NHxCc/MAXSDAto= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Jouni=20H=C3=B6gander?= , Nemesa Garg , Dan Carpenter , Andi Shyti , Tvrtko Ursulin Subject: [PATCH 6.12 066/144] drm/i915/psr: Init variable to avoid early exit from et alignment loop Date: Fri, 15 May 2026 17:48:12 +0200 Message-ID: <20260515154655.077221759@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154653.469907118@linuxfoundation.org> References: <20260515154653.469907118@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jouni Högander commit 314f6179e370988ac00dadf373a4f6166eb3db15 upstream. Uninitialized boolean variable may cause unwanted exit from et alignment loop. Fix this by initializing it as false. Fixes: 1be2fca84f52 ("drm/i915/psr: Repeat Selective Update area alignment") Cc: # v6.9+ Signed-off-by: Jouni Högander Reviewed-by: Nemesa Garg Reported-by: Dan Carpenter Reviewed-by: Andi Shyti Link: https://patch.msgid.link/20260413112345.88853-1-jouni.hogander@intel.com (cherry picked from commit 289678a90b8cf81e3514c9d6c667235cd39c7acf) Signed-off-by: Tvrtko Ursulin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2624,7 +2624,7 @@ int intel_psr2_sel_fetch_update(struct i return ret; do { - bool cursor_in_su_area; + bool cursor_in_su_area = false; /* * Adjust su area to cover cursor fully as necessary