Re: [PATCH v6 03/18] of: overlay: add missing of_node_get() in __of_attach_node_sysfs

2018-11-07 Thread Frank Rowand
On 11/7/18 4:14 AM, Michael Ellerman wrote: > frowand.l...@gmail.com writes: > >> From: Frank Rowand >> >> There is a matching of_node_put() in __of_detach_node_sysfs() >> >> Remove misleading comment from function header comment for >> of_detach_node(). >> >> This patch may result in memory

Re: [PATCH v6 03/18] of: overlay: add missing of_node_get() in __of_attach_node_sysfs

2018-11-07 Thread Michael Ellerman
frowand.l...@gmail.com writes: > From: Frank Rowand > > There is a matching of_node_put() in __of_detach_node_sysfs() > > Remove misleading comment from function header comment for > of_detach_node(). > > This patch may result in memory leaks from code that directly calls > the dynamic node add

[PATCH v6 03/18] of: overlay: add missing of_node_get() in __of_attach_node_sysfs

2018-11-05 Thread frowand . list
From: Frank Rowand There is a matching of_node_put() in __of_detach_node_sysfs() Remove misleading comment from function header comment for of_detach_node(). This patch may result in memory leaks from code that directly calls the dynamic node add and delete functions directly instead of using