]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: logicvc: Fix uninitialized variable in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Jun 2022 12:08:25 +0000 (15:08 +0300)
committerPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 24 Jun 2022 15:03:04 +0000 (17:03 +0200)
The "regmap" is supposed to be initialized to NULL but it's used
without being initialized.

Fixes: 03b72aa1419a ("drm: Add support for the LogiCVC display controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Yqh6OfSiPFuVrGo4@kili
drivers/gpu/drm/logicvc/logicvc_drm.c

index df1805cf0f95244529170f64f9a00fc7420db875..0b983a33f9ff2707a9a6e005a0928db249596b46 100644 (file)
@@ -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;