diff options
| author | Sajal Gupta <sajal2005gupta@gmail.com> | 2026-09-22 14:10:08 +0530 |
|---|---|---|
| committer | Ruben Wauters <rubenru09@aol.com> | 2026-10-06 13:26:50 +0100 |
| commit | 71ec70ea26e399eb8371fe9d2d5bf5dab09570fb (patch) | |
| tree | 4edaca6e3165e56e815a4538232e5f920aa24939 /tools/lib/python/kdoc/python_version.py | |
| parent | bca45af5998a05f34b13a2ef11e639bac9c62643 (diff) | |
| download | linux-next-71ec70ea26e399eb8371fe9d2d5bf5dab09570fb.tar.gz linux-next-71ec70ea26e399eb8371fe9d2d5bf5dab09570fb.zip | |
drm/gud: don't keep a connector without a CRTC as connector_state
If the 'for_each_new_connector_in_state()' loop finishes without
hitting the break, connector_state is left pointing at the last
connector visited, which has no CRTC, instead of
staying NULL.
That skips the "if (!connector_state)" fallback below the loop, which
looks up the active connector when the state contains none. The
function then carries on with a connector that is not driven.
Fix by resetting connector_state to NULL for each connector visited that
has no CRTC, so that it is NULL when none was found and the fallback runs.
Fixes: 40e1a70b4aed ("drm: Add GUD USB Display driver")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260902123254.36987-1-sajal2005gupta@gmail.com?part=1
Signed-off-by: Sajal Gupta <sajal2005gupta@gmail.com>
Acked-by: Ruben Wauters <rubenru09@aol.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Link: https://patch.msgid.link/20260922084026.15481-1-sajal2005gupta@gmail.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
