LKML Archive on
help / color / mirror / Atom feed
From: Greg Kroah-Hartman <>
To: "Tobin C. Harding" <>
Cc: Mark Fasheh <>, Joel Becker <>,
	"Rafael J. Wysocki" <>,,
Subject: Re: [PATCH] ocfs2: Fix error path kobject memory leak
Date: Mon, 13 May 2019 09:14:52 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Mon, May 13, 2019 at 01:34:58PM +1000, Tobin C. Harding wrote:
> If a call to kobject_init_and_add() fails we should call kobject_put()
> otherwise we leak memory.
> Add call to kobject_put() in the error path of call to
> kobject_init_and_add().  Please note, this has the side effect that
> the release method is called if kobject_init_and_add() fails.
> Signed-off-by: Tobin C. Harding <>
> ---

Reviewed-by: Greg Kroah-Hartman <>

  reply	other threads:[~2019-05-13  7:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-13  3:34 Tobin C. Harding
2019-05-13  7:14 ` Greg Kroah-Hartman [this message]
2019-05-13  7:28 ` Joseph Qi

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:

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

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] ocfs2: Fix error path kobject memory leak' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).