[PATCH] drm: logicvc: Fix uninitialized variable in probe
Paul Kocialkowski
paul.kocialkowski at bootlin.com
Fri Jun 24 15:25:02 UTC 2022
Hi,
On Fri 24 Jun 22, 16:35, Paul Kocialkowski wrote:
> Hi Dan,
>
> On Tue 14 Jun 22, 15:08, Dan Carpenter wrote:
> > 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 at oracle.com>
>
> Nice catch, thanks a lot!
>
> Acked-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
Pushed to drm-misc-next, thanks!
Paul
> Cheers,
>
> Paul
>
> > ---
> > 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
> >
>
> --
> Paul Kocialkowski, Bootlin
> Embedded Linux and kernel engineering
> https://bootlin.com
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220624/4f572311/attachment.sig>
More information about the dri-devel
mailing list