Skip to content
Commit 8b50a799 authored by Lukasz Luba's avatar Lukasz Luba Committed by Chanwoo Choi
Browse files

PM / devfreq: Unlock mutex and free devfreq struct in error path



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+ <stable@vger.kernel.org> # v5.9+
Fixes: 4dc3bab8 ("PM / devfreq: Add support delayed timer for polling mode")
Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 75d1b0b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment