From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx128.postini.com [74.125.245.128]) by kanga.kvack.org (Postfix) with SMTP id A1C946B004D for ; Wed, 8 Aug 2012 11:41:45 -0400 (EDT) Date: Wed, 8 Aug 2012 10:40:26 -0500 (CDT) From: "Christoph Lameter (Open Source)" Subject: Re: Common10 [11/20] Do slab aliasing call from common code In-Reply-To: Message-ID: References: <20120803192052.448575403@linux.com> <20120803192154.205306565@linux.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: JoonSoo Kim Cc: Glauber Costa , Pekka Enberg , linux-mm@kvack.org, David Rientjes On Sun, 5 Aug 2012, JoonSoo Kim wrote: > sysfs_slab_alias() in __kmem_cache_alias() stores reference of name param. > Currently, when we call __kmem_cache_alias(), we don't do kstrdup(). > It is not desired behavior as we don't want to be depend on caller of > kmem_cache_create(). > So we need to do kstrdup() before invoking __kmem_cache_alias(). Ok. -- 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: email@kvack.org