linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Xiaotian Feng <dfeng@redhat.com>
Cc: cl@linux-foundation.org, linux-mm@kvack.org,
	linux-kernel.vger.kernel.org@redhat.com
Subject: Re: [PATCH] slub: release kobject if sysfs_create_group failed in sysfs_slab_add
Date: Wed, 22 Jul 2009 09:17:16 +0300	[thread overview]
Message-ID: <4A66AEEC.1080600@cs.helsinki.fi> (raw)
In-Reply-To: <1248233333-22563-1-git-send-email-dfeng@redhat.com>

Xiaotian Feng wrote:
> When CONFIG_SLUB_DEBUG is enabled, sysfs_slab_add should unlink and put the
> kobject if sysfs_create_group failed. Otherwise, sysfs_slab_add returns error
> then free kmem_cache s, thus memory of s->kobj is leaked.
> 
> Acked-by: Christoph Lameter <cl@linux-foundation.org>
> Signed-off-by: Xiaotian Feng <dfeng@redhat.com>

Applied, thanks!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2009-07-22  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22  3:28 [PATCH] slub: release kobject if sysfs_create_group failed in sysfs_slab_add Xiaotian Feng
2009-07-22  6:17 ` Pekka Enberg [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=4A66AEEC.1080600@cs.helsinki.fi \
    --to=penberg@cs.helsinki.fi \
    --cc=cl@linux-foundation.org \
    --cc=dfeng@redhat.com \
    --cc=linux-kernel.vger.kernel.org@redhat.com \
    --cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).