Re: [PATCHv2 2/2] hwmon: core: fix potential memory leak in *hwmon_device_register*

2019-06-06 Thread Eduardo Valentin
On Wed, Jun 05, 2019 at 01:38:38PM -0700, Guenter Roeck wrote: > On Wed, May 29, 2019 at 07:56:05PM -0700, Eduardo Valentin wrote: > > When registering a hwmon device with HWMON_C_REGISTER_TZ flag > > in place, the hwmon subsystem will attempt to register the device > > also with the thermal subsys

Re: [PATCHv2 2/2] hwmon: core: fix potential memory leak in *hwmon_device_register*

2019-06-05 Thread Guenter Roeck
On Wed, May 29, 2019 at 07:56:05PM -0700, Eduardo Valentin wrote: > When registering a hwmon device with HWMON_C_REGISTER_TZ flag > in place, the hwmon subsystem will attempt to register the device > also with the thermal subsystem. When the of-thermal registration > fails, __hwmon_device_register