RE: [PATCH] of: dynamic: fix memory leak related to properties of __of_node_dup
From: Wang, Alan 1. (NSB - CN/Hangzhou)
Date: Mon Oct 16 2017 - 00:35:22 EST
Hi Rob and Frank,
Thanks for your comments.
Frank's description is exactly what I meant. I will changed the description as yours if you don't mind.
We are using Linux v3.10.64 and a patch from https://lkml.org/lkml/2014/4/4/207.
With this patch all properties are added dynamically to the dynamic nodes. This is where I firstly found this issue using kmemleak.
And in our environment, the nodes for OCXO are kept empty in the dts file, and the properties will be generated at runtime
according to sensor details read from ocxo EEPROM. In this case, I think memory leak remains on latest version when resetting that devices.
Thanks.
Lixin