Re: [PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-29 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent node was prematurely freed, while the > child node w

Re: [PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-13 Thread Peter Ujfalusi
On 11/11/2017 05:38 PM, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent node was prematurely freed, while the > child node

Re: [PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-13 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent node was prematurely freed, while the > child node w

[PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-11 Thread Johan Hovold
Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children. To make things worse, the parent node was prematurely freed, while the child node was leaked. Note that the CONFIG_OF compile guard can