All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: npiggin@gmail.com, christophe.leroy@csgroup.eu, windhl@126.com,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	ruanjinjie <ruanjinjie@huawei.com>
Subject: Re: [PATCH] powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
Date: Wed, 23 Aug 2023 21:55:55 +1000	[thread overview]
Message-ID: <169279175567.797584.15288361947822567301.b4-ty@ellerman.id.au> (raw)
In-Reply-To: <20221110011929.3709774-1-ruanjinjie@huawei.com>

On Thu, 10 Nov 2022 09:19:29 +0800, ruanjinjie wrote:
> If device_register() returns error in ibmebus_bus_init(), name of kobject
> which is allocated in dev_set_name() called in device_add() is leaked.
> 
> As comment of device_add() says, it should call put_device() to drop
> the reference count that was set in device_initialize() when it fails,
> so the name can be freed in kobject_cleanup().
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
      https://git.kernel.org/powerpc/c/afda85b963c12947e298ad85d757e333aa40fd74

cheers

      reply	other threads:[~2023-08-23 12:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10  1:19 [PATCH] powerpc/pseries: fix possible memory leak in ibmebus_bus_init() ruanjinjie
2022-11-10  1:19 ` ruanjinjie
2023-08-23 11:55 ` Michael Ellerman [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=169279175567.797584.15288361947822567301.b4-ty@ellerman.id.au \
    --to=patch-notifications@ellerman.id.au \
    --cc=christophe.leroy@csgroup.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=npiggin@gmail.com \
    --cc=ruanjinjie@huawei.com \
    --cc=windhl@126.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.