Re: [PATCH] drm: logicvc: fix device_node refcount leak in logicvc_layers_init()

Markus Elfring <[email protected]>
Newsgroups org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
> On logicvc_layer_init() failure, logicvc_layers_init() releases the
> parent layers_node reference before jumping to the error path, but
> never releases layer_node, the child node held by the current
> for_each_child_of_node() iteration. Add the missing of_node_put()
> for layer_node alongside the existing one for layers_node.

How do you think about to increase the application of scope-based resource management?

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.