[PATCH] drm: fix device_node_continue.cocci warnings (fwd)
Paul Kocialkowski
paul.kocialkowski at bootlin.com
Fri Jun 24 15:26:44 UTC 2022
Hi,
On Fri 24 Jun 22, 17:08, Paul Kocialkowski wrote:
> Hi Julia,
>
> On Sun 12 Jun 22, 13:02, Julia Lawall wrote:
> > The of_node_put does not seem to be needed. Note that there is none at
> > the preceeding continues.
>
> That looks like a correct fix, thanks!
Pushed to drm-misc-next, thanks!
Paul
> > julia
> >
> > ---------- Forwarded message ----------
> > Date: Sat, 11 Jun 2022 06:02:45 +0800
> > From: kernel test robot <lkp at intel.com>
> > To: kbuild at lists.01.org
> > Cc: lkp at intel.com, Julia Lawall <julia.lawall at lip6.fr>
> > Subject: [PATCH] drm: fix device_node_continue.cocci warnings
> >
> > CC: kbuild-all at lists.01.org
> > BCC: lkp at intel.com
> > CC: Linux Memory Management List <linux-mm at kvack.org>
> > TO: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
> > CC: Maxime Ripard <mripard at kernel.org>
> > CC: David Airlie <airlied at linux.ie>
> > CC: Daniel Vetter <daniel at ffwll.ch>
> > CC: dri-devel at lists.freedesktop.org
> > CC: linux-kernel at vger.kernel.org
> >
> > From: kernel test robot <lkp at intel.com>
> >
> > drivers/gpu/drm/logicvc/logicvc_layer.c:616:2-13: ERROR: probable double put.
> >
> > Device node iterators put the previous value of the index variable, so an
> > explicit put causes a double put.
> >
> > Generated by: scripts/coccinelle/iterators/device_node_continue.cocci
> >
> > Reported-by: kernel test robot <lkp at intel.com>
> > Signed-off-by: kernel test robot <lkp at intel.com>
> > ---
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head: 6d0c806803170f120f8cb97b321de7bd89d3a791
> > commit: efeeaefe9be56e8ae5e5b4e9ff6d2275ec977ec5 [2027/2566] drm: Add support for the LogiCVC display controller
> > :::::: branch date: 17 hours ago
> > :::::: commit date: 31 hours ago
> >
> > Please take the patch only if it's a positive warning. Thanks!
> >
> > drivers/gpu/drm/logicvc/logicvc_layer.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > --- a/drivers/gpu/drm/logicvc/logicvc_layer.c
> > +++ b/drivers/gpu/drm/logicvc/logicvc_layer.c
> > @@ -612,8 +612,6 @@ int logicvc_layers_init(struct logicvc_d
> > ret = logicvc_layer_init(logicvc, layer_node, index);
> > if (ret)
> > goto error;
> > -
> > - of_node_put(layer_node);
> > }
> >
> > of_node_put(layers_node);
>
> --
> 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/b0dd6501/attachment.sig>
More information about the dri-devel
mailing list