Re: [PATCH] slub: fix a possible memory leak

From: David Rientjes
Date: Tue May 15 2012 - 02:28:51 EST


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 <js1304@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/