]> git.baikalelectronics.ru Git - kernel.git/commit
drm: fix device_node_continue.cocci warnings
authorJulia Lawall <julia.lawall@inria.fr>
Sun, 12 Jun 2022 11:02:31 +0000 (13:02 +0200)
committerPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 24 Jun 2022 15:22:50 +0000 (17:22 +0200)
commit1e3450a07c7b2223908192bc2985df392ac5409f
treef50706c5bf8f790c41267bddbe6a54fd4313f65e
parent4cdac9e0e3a5a00ea47b04da524e61a6ddebfaac
drm: fix device_node_continue.cocci warnings

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@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/alpine.DEB.2.22.394.2206121300120.3447@hadrien
drivers/gpu/drm/logicvc/logicvc_layer.c