diff options
| author | Jani Nikula <[email protected]> | 2023-12-08 13:12:38 +0000 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2023-12-08 14:47:39 +0000 |
| commit | 6e455f5dcdd15fa28edf0ffb5b44d3508512dccf (patch) | |
| tree | 328d1017af04b0a73be0701f18480f24ed178ca1 /tools/perf/scripts/python/gecko.py | |
| parent | drm/crtc: Fix uninit-value bug in drm_mode_setcrtc (diff) | |
| download | kernel-6e455f5dcdd15fa28edf0ffb5b44d3508512dccf.tar.gz kernel-6e455f5dcdd15fa28edf0ffb5b44d3508512dccf.zip | |
drm/crtc: fix uninitialized variable use
Commit 3823119b9c2b ("drm/crtc: Fix uninit-value bug in
drm_mode_setcrtc") was supposed to fix use of an uninitialized variable,
but introduced another.
num_connectors is only initialized if crtc_req->count_connectors > 0,
but it's used regardless. Fix it.
Fixes: 3823119b9c2b ("drm/crtc: Fix uninit-value bug in drm_mode_setcrtc")
Cc: [email protected]
Cc: Ziqi Zhao <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
