]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: loongson3: Check for error code from devm_mutex_init() call
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 31 Oct 2024 13:46:34 +0000 (15:46 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Nov 2024 04:10:03 +0000 (09:40 +0530)
commitdb01e46689e9a986ca6b5d2f41b57d7a81551a4f
treecf9f52a9a398d2365ceb8c32712d4468664b8805
parent8c776a54d9ef3e945db2fe407ad6ad4525422943
cpufreq: loongson3: Check for error code from devm_mutex_init() call

Even if it's not critical, the avoidance of checking the error code
from devm_mutex_init() call today diminishes the point of using devm
variant of it. Tomorrow it may even leak something. Add the missed
check.

Fixes: ccf51454145b ("cpufreq: Add Loongson-3 CPUFreq driver support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/loongson3_cpufreq.c