diff mbox series

drm/tegra: output: Fix 'Uninitialized pointer read' issue

Message ID 20240903074722.4328-1-qianqiang.liu@163.com
State Superseded
Headers show
Series drm/tegra: output: Fix 'Uninitialized pointer read' issue | expand

Commit Message

Qianqiang Liu Sept. 3, 2024, 7:47 a.m. UTC
drm_edid may be passed to drm_edid_connector_update() without an
initiated value

Fixes: 98365ca74cbf (drm/tegra: convert to struct drm_edid)
Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>
---
 drivers/gpu/drm/tegra/output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;
 
 	/*