All of lore.kernel.org
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: linux-arm-kernel@lists.infradead.org, Gavin Shan <gshan@redhat.com>
Cc: mark.rutland@arm.com, catalin.marinas@arm.com,
	kernel-team@android.com, Will Deacon <will@kernel.org>,
	sudeep.holla@arm.com
Subject: Re: [PATCH v3] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
Date: Wed,  8 Jul 2020 23:02:33 +0100	[thread overview]
Message-ID: <159424083350.2035240.7333006286899195931.b4-ty@kernel.org> (raw)
In-Reply-To: <20200630075227.199624-1-gshan@redhat.com>

On Tue, 30 Jun 2020 17:52:27 +1000, Gavin Shan wrote:
> The CPU mask (@tmp) should be released on failing to allocate
> @cpu_groups or any of its elements. Otherwise, it leads to memory
> leakage because the CPU mask variable is dynamically allocated
> when CONFIG_CPUMASK_OFFSTACK is enabled.

Applied to arm64 (for-next/fixes), thanks!

[1/1] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
      https://git.kernel.org/arm64/c/c377e67c6271

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2020-07-08 22:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30  7:52 [PATCH v3] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups() Gavin Shan
2020-07-08 22:02 ` Will Deacon [this message]

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=159424083350.2035240.7333006286899195931.b4-ty@kernel.org \
    --to=will@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=gshan@redhat.com \
    --cc=kernel-team@android.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=sudeep.holla@arm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.