Re: [PATCH] thermal/drivers/cpuidle_cooling: Fix use after error

2021-03-22 Thread Viresh Kumar
On 22-03-21, 09:08, Daniel Lezcano wrote: > On 22/03/2021 04:29, Viresh Kumar wrote: > > On 19-03-21, 21:25, Daniel Lezcano wrote: > >> When the function successfully finishes it logs an information about > >> the registration of the cooling device and use its name to build the > >> message. Unfort

Re: [PATCH] thermal/drivers/cpuidle_cooling: Fix use after error

2021-03-22 Thread Daniel Lezcano
On 22/03/2021 04:29, Viresh Kumar wrote: > On 19-03-21, 21:25, Daniel Lezcano wrote: >> When the function successfully finishes it logs an information about >> the registration of the cooling device and use its name to build the >> message. Unfortunately it was freed right before: >> >> drivers/the

Re: [PATCH] thermal/drivers/cpuidle_cooling: Fix use after error

2021-03-21 Thread Viresh Kumar
On 19-03-21, 21:25, Daniel Lezcano wrote: > When the function successfully finishes it logs an information about > the registration of the cooling device and use its name to build the > message. Unfortunately it was freed right before: > > drivers/thermal/cpuidle_cooling.c:218 __cpuidle_cooling_re