From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759212Ab2EPGhl (ORCPT ); Wed, 16 May 2012 02:37:41 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:58053 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759126Ab2EPGhk (ORCPT ); Wed, 16 May 2012 02:37:40 -0400 MIME-Version: 1.0 In-Reply-To: References: <1336663979-2611-1-git-send-email-js1304@gmail.com> Date: Wed, 16 May 2012 09:37:38 +0300 X-Google-Sender-Auth: yfYsFb9biZ0B5-UyUXGLod2VgJQ Message-ID: Subject: Re: [PATCH] slub: fix a possible memory leak From: Pekka Enberg To: David Rientjes Cc: Joonsoo Kim , Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2012 at 9:28 AM, David Rientjes wrote: > On Fri, 11 May 2012, Joonsoo Kim wrote: > >> Memory allocated by kstrdup should be freed, >> when kmalloc(kmem_size, GFP_KERNEL) is failed. >> >> Signed-off-by: Joonsoo Kim > > Acked-by: David Rientjes > > kmem_cache_create() in slub would significantly be improved with a rewrite > to have a clear error path and use of return values of functions it calls. Applied, thanks! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx129.postini.com [74.125.245.129]) by kanga.kvack.org (Postfix) with SMTP id 4D4846B00F0 for ; Wed, 16 May 2012 02:37:40 -0400 (EDT) Received: by obbwd18 with SMTP id wd18so847059obb.14 for ; Tue, 15 May 2012 23:37:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1336663979-2611-1-git-send-email-js1304@gmail.com> Date: Wed, 16 May 2012 09:37:38 +0300 Message-ID: Subject: Re: [PATCH] slub: fix a possible memory leak From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Joonsoo Kim , Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org On Tue, May 15, 2012 at 9:28 AM, David Rientjes wrote: > On Fri, 11 May 2012, Joonsoo Kim wrote: > >> Memory allocated by kstrdup should be freed, >> when kmalloc(kmem_size, GFP_KERNEL) is failed. >> >> Signed-off-by: Joonsoo Kim > > Acked-by: David Rientjes > > kmem_cache_create() in slub would significantly be improved with a rewrite > to have a clear error path and use of return values of functions it calls. 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org