All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: logicvc: Fix uninitialized variable in probe
@ 2022-06-14 12:08 ` Dan Carpenter
  0 siblings, 0 replies; 14+ messages in thread
From: Dan Carpenter @ 2022-06-14 12:08 UTC (permalink / raw)
  To: Paul Kocialkowski
  Cc: David Airlie, Daniel Vetter, Maxime Ripard, dri-devel,
	linux-kernel, kernel-janitors

The "regmap" is supposed to be initialized to NULL but it's used
without being initialized.

Fixes: efeeaefe9be5 ("drm: Add support for the LogiCVC display controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 drivers/gpu/drm/logicvc/logicvc_drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/logicvc/logicvc_drm.c b/drivers/gpu/drm/logicvc/logicvc_drm.c
index df1805cf0f95..0b983a33f9ff 100644
--- a/drivers/gpu/drm/logicvc/logicvc_drm.c
+++ b/drivers/gpu/drm/logicvc/logicvc_drm.c
@@ -298,7 +298,7 @@ static int logicvc_drm_probe(struct platform_device *pdev)
 	struct logicvc_drm *logicvc;
 	struct device *dev = &pdev->dev;
 	struct drm_device *drm_dev;
-	struct regmap *regmap;
+	struct regmap *regmap = NULL;
 	struct resource res;
 	void __iomem *base;
 	int irq;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-27  8:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 12:08 [PATCH] drm: logicvc: Fix uninitialized variable in probe Dan Carpenter
2022-06-14 12:08 ` Dan Carpenter
2022-06-24 14:35 ` Paul Kocialkowski
2022-06-24 14:35   ` Paul Kocialkowski
2022-06-24 14:37   ` Maxime Ripard
2022-06-24 14:37     ` Maxime Ripard
2022-06-24 14:46     ` Paul Kocialkowski
2022-06-24 14:46       ` Paul Kocialkowski
2022-06-24 15:06       ` Maxime Ripard
2022-06-24 15:06         ` Maxime Ripard
2022-06-27  8:53       ` Maxime Ripard
2022-06-27  8:53         ` Maxime Ripard
2022-06-24 15:25   ` Paul Kocialkowski
2022-06-24 15:25     ` Paul Kocialkowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.