Re: [PATCH v2] PM / devfreq: Unlock mutex and free devfreq struct in error path

2021-03-15 Thread Lukasz Luba
On 3/15/21 9:54 AM, Chanwoo Choi wrote: On 3/15/21 6:31 PM, Lukasz Luba wrote: The devfreq->lock is held for time of setup. Release the lock in the error path, before jumping to the end of the function. Change the goto destination which frees the allocated memory. Cc: v5.9+ # v5.9+ Fixes:

Re: [PATCH v2] PM / devfreq: Unlock mutex and free devfreq struct in error path

2021-03-15 Thread Chanwoo Choi
On 3/15/21 6:31 PM, Lukasz Luba wrote: > The devfreq->lock is held for time of setup. Release the lock in the > error path, before jumping to the end of the function. > > Change the goto destination which frees the allocated memory. > > Cc: v5.9+ # v5.9+ > Fixes: 4dc3bab8687f ("PM / devfreq: Add

[PATCH v2] PM / devfreq: Unlock mutex and free devfreq struct in error path

2021-03-15 Thread Lukasz Luba
The devfreq->lock is held for time of setup. Release the lock in the error path, before jumping to the end of the function. Change the goto destination which frees the allocated memory. Cc: v5.9+ # v5.9+ Fixes: 4dc3bab8687f ("PM / devfreq: Add support delayed timer for polling mode") Signed-off-