aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <[email protected]>2024-09-02 19:13:17 +0300
committerThomas Zimmermann <[email protected]>2024-09-05 12:40:18 +0200
commitba2b9de0c1ac2abfbe663414a292c5881e64c361 (patch)
treed620c10fc789e55490ac77f7fe1b4dabdbcaaa14
parente066e9aa4d9c869c92d1d03647472e4ce96c0919 (diff)
drm/tegra: fix potential uninitialized variable use
It's likely either output->drm_edid or output->ddc is non-NULL, but avoid the uninitialized variable usage anyway. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Fixes: 98365ca74cbf ("drm/tegra: convert to struct drm_edid") Cc: Thierry Reding <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: [email protected] Acked-by: Thierry Reding <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Jani Nikula <[email protected]> (cherry picked from commit 8e514bad271723473d31fcc496f7143ba49c43c5) Signed-off-by: Thomas Zimmermann <[email protected]>
-rw-r--r--drivers/gpu/drm/tegra/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index e6b5863fec71..49e4f63a5550 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -21,7 +21,7 @@
int tegra_output_connector_get_modes(struct drm_connector *connector)
{
struct tegra_output *output = connector_to_output(connector);
- const struct drm_edid *drm_edid;
+ const struct drm_edid *drm_edid = NULL;
int err = 0;
/*