Re: [PATCH v2] of: resolver: Add missing of_node_get and of_node_put

2016-02-11 Thread Pantelis Antoniou
Hi Rob, > On Feb 12, 2016, at 01:18 , Rob Herring wrote: > > On Wed, Feb 3, 2016 at 12:09 PM, Amitoj Kaur Chawla > wrote: >> In __of_find_node_by_full_name, add an of_node_get when detecting the >> desired element, to ensure that it ends up with a reference count that is >> one greater than on

Re: [PATCH v2] of: resolver: Add missing of_node_get and of_node_put

2016-02-11 Thread Rob Herring
On Wed, Feb 3, 2016 at 12:09 PM, Amitoj Kaur Chawla wrote: > In __of_find_node_by_full_name, add an of_node_get when detecting the > desired element, to ensure that it ends up with a reference count that is > one greater than on entering the function. > > Also in __of_find_node_by_full_name, add a

[PATCH v2] of: resolver: Add missing of_node_get and of_node_put

2016-02-03 Thread Amitoj Kaur Chawla
In __of_find_node_by_full_name, add an of_node_get when detecting the desired element, to ensure that it ends up with a reference count that is one greater than on entering the function. Also in __of_find_node_by_full_name, add an of_node_put on breaking out of the for_each_child_of_node loop, to