[PATCH] gpu: drm: pl111: pl111_vexpress.c: Add of_node_put() before return

Eric Anholt eric at anholt.net
Tue Jul 16 00:10:49 UTC 2019


Nishka Dasgupta <nishkadg.linux at gmail.com> writes:

> Each iteration of for_each_available_child_of_node puts the previous
> node, but in the case of a break from the middle of the loop there is
> no put, thus causing a memory leak. Hence add an of_node_put before the
> break.
> Issue found with Coccinelle.

Pushed.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190715/e15c5144/attachment.sig>


More information about the dri-devel mailing list