Re: [PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-31 Thread Johan Hovold
On Tue, May 30, 2017 at 03:59:10PM -0700, Tyrel Datwyler wrote: > On 05/30/2017 09:25 AM, Johan Hovold wrote: > > The thermal child device reuses the parent MFD-device device-tree node > > when registering a thermal zone, but did not take a reference to the > > node. > > > > This leads to a

Re: [PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-31 Thread Johan Hovold
On Tue, May 30, 2017 at 03:59:10PM -0700, Tyrel Datwyler wrote: > On 05/30/2017 09:25 AM, Johan Hovold wrote: > > The thermal child device reuses the parent MFD-device device-tree node > > when registering a thermal zone, but did not take a reference to the > > node. > > > > This leads to a

Re: [PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-30 Thread Tyrel Datwyler
On 05/30/2017 09:25 AM, Johan Hovold wrote: > The thermal child device reuses the parent MFD-device device-tree node > when registering a thermal zone, but did not take a reference to the > node. > > This leads to a reference imbalance, and potential use-after-free, when > the node reference is

Re: [PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-30 Thread Tyrel Datwyler
On 05/30/2017 09:25 AM, Johan Hovold wrote: > The thermal child device reuses the parent MFD-device device-tree node > when registering a thermal zone, but did not take a reference to the > node. > > This leads to a reference imbalance, and potential use-after-free, when > the node reference is

[PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-30 Thread Johan Hovold
The thermal child device reuses the parent MFD-device device-tree node when registering a thermal zone, but did not take a reference to the node. This leads to a reference imbalance, and potential use-after-free, when the node reference is dropped by the platform-bus device destructor (once for

[PATCH 6/7] thermal: max77620: fix device-node reference imbalance

2017-05-30 Thread Johan Hovold
The thermal child device reuses the parent MFD-device device-tree node when registering a thermal zone, but did not take a reference to the node. This leads to a reference imbalance, and potential use-after-free, when the node reference is dropped by the platform-bus device destructor (once for