Re: [PATCH] kmemleak: do not leak object after tree insertionerror (v3)

From: Catalin Marinas
Date: Thu Apr 19 2012 - 05:19:29 EST


On Wed, Apr 18, 2012 at 04:44:48PM +0100, Sergey Senozhatsky wrote:
> [PATCH] kmemleak: do not leak object after tree insertion error
>
> In case when tree insertion fails due to already existing object
> error, pointer to allocated object gets lost because of overwrite
> with lookup_object() return. Free allocated object before object
> lookup.
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>

Thanks. I applied it to my kmemleak branch and I'll send it to Linus at
some point (during the next merging window).

--
Catalin
--
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/