Re: [PATCH] thermal: core: move tz->device.groups cleanup to thermal_release

2017-01-05 Thread Yasuaki Ishimatsu
On 12/30/2016 02:07 PM, Jacob von Chorus wrote: The device_unregister call in thermal_zone_device_unregister causes the thermal_zone_device structure to be freed before the call to free the dynamically allocated attribute groups. This leads to a kernel panic. Could you add the following call

Re: [PATCH] thermal: core: move tz->device.groups cleanup to thermal_release

2017-01-05 Thread Yasuaki Ishimatsu
On 12/30/2016 02:07 PM, Jacob von Chorus wrote: The device_unregister call in thermal_zone_device_unregister causes the thermal_zone_device structure to be freed before the call to free the dynamically allocated attribute groups. This leads to a kernel panic. Could you add the following call

[PATCH] thermal: core: move tz->device.groups cleanup to thermal_release

2016-12-30 Thread Jacob von Chorus
The device_unregister call in thermal_zone_device_unregister causes the thermal_zone_device structure to be freed before the call to free the dynamically allocated attribute groups. This leads to a kernel panic. Furthermore, the 4 calls to free the trip point attribute structures occur before the

[PATCH] thermal: core: move tz->device.groups cleanup to thermal_release

2016-12-30 Thread Jacob von Chorus
The device_unregister call in thermal_zone_device_unregister causes the thermal_zone_device structure to be freed before the call to free the dynamically allocated attribute groups. This leads to a kernel panic. Furthermore, the 4 calls to free the trip point attribute structures occur before the