[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241001112908.6863-1-riyandhiman14@gmail.com>
Date: Tue, 1 Oct 2024 16:58:39 +0530
From: Riyan Dhiman <riyandhiman14@...il.com>
To: viresh.kumar@...aro.org,
rafael@...nel.org
Cc: linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] cpufreq: mediatek: Fix resource leaks on mtk_cpu_create_freq_table() failure
> Since this driver already uses devm_* APIs, what about using them
> instead ?
Since ioremap was called that's why I added a goto statement to handle
the cleanup.
In this file, devm_kzalloc and devm_regulator_get are called. Do I need
to call this devm_platform_ioremap_resource instead of ioremap if devm_*
api need to be used?
Regards,
Riyan Dhiman
Powered by blists - more mailing lists