mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Riyan Dhiman <riyandhiman14@gmail.com>
To: viresh.kumar@linaro.org, rafael@kernel.org
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2] cpufreq: mediatek: Fix resource leaks on mtk_cpu_create_freq_table() failure
Date: Tue,  1 Oct 2024 16:58:39 +0530	[thread overview]
Message-ID: <20241001112908.6863-1-riyandhiman14@gmail.com> (raw)
In-Reply-To: <20241001053906.mkhld5ufrmpdhfud@vireshk-i7>

> 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

  reply	other threads:[~2024-10-01 11:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-07 16:36 Riyan Dhiman
2024-10-01  5:39 ` Viresh Kumar
2024-10-01 11:28   ` Riyan Dhiman [this message]
2024-10-03  4:08     ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241001112908.6863-1-riyandhiman14@gmail.com \
    --to=riyandhiman14@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®