diff options
author | Julia Lawall <julia.lawall@inria.fr> | 2022-06-12 14:02:31 +0300 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2022-06-24 18:22:50 +0300 |
commit | d3a453416270f5c7f1bf409597d702a2230e5a6c (patch) | |
tree | f50706c5bf8f790c41267bddbe6a54fd4313f65e /drivers/gpu/drm/logicvc | |
parent | f9bbc1c8449a51a049a1d6d436eb973b00b6cd7a (diff) | |
download | linux-d3a453416270f5c7f1bf409597d702a2230e5a6c.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/logicvc')
-rw-r--r-- | drivers/gpu/drm/logicvc/logicvc_layer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/logicvc/logicvc_layer.c b/drivers/gpu/drm/logicvc/logicvc_layer.c index 463653b2c109..31c5c42f0ac6 100644 --- a/drivers/gpu/drm/logicvc/logicvc_layer.c +++ b/drivers/gpu/drm/logicvc/logicvc_layer.c @@ -615,8 +615,6 @@ int logicvc_layers_init(struct logicvc_drm *logicvc) ret = logicvc_layer_init(logicvc, layer_node, index); if (ret) goto error; - - of_node_put(layer_node); } of_node_put(layers_node); |