mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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: 681e12440d ("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>
Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patch.msgid.link/20260413112345.88853-1-jouni.hogander@intel.com
This commit is contained in:
parent
86fe1ecdc4
commit
289678a90b
|
|
@ -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;
|
||||
|
||||
/*
|
||||
* Adjust su area to cover cursor fully as necessary
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user