Skip to content

Commit ba2b9de

Browse files
jnikulatdz
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 <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/ZtXLyXxew7z6H2bD@stanley.mountain Fixes: 98365ca ("drm/tegra: convert to struct drm_edid") Cc: Thierry Reding <treding@nvidia.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: linux-tegra@vger.kernel.org Acked-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240902161317.2437148-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com> (cherry picked from commit 8e514ba) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
1 parent e066e9a commit ba2b9de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)