Skip to content

Commit ba2b9de

Browse files
jnikulaThomas Zimmermann
authored andcommitted
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: 98365ca ("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 8e514ba) Signed-off-by: Thomas Zimmermann <[email protected]>
1 parent e066e9a commit ba2b9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tegra/output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
int tegra_output_connector_get_modes(struct drm_connector *connector)
2222
{
2323
struct tegra_output *output = connector_to_output(connector);
24-
const struct drm_edid *drm_edid;
24+
const struct drm_edid *drm_edid = NULL;
2525
int err = 0;
2626

2727
/*

0 commit comments

Comments
 (0)