Re: [PATCH] dm-log-userspace: fix memory leak on failure path in dm_ulog_tfr_init()

From: Brassow Jonathan
Date: Thu Oct 02 2014 - 12:57:53 EST


On Oct 1, 2014, at 3:58 PM, Alexey Khoroshilov <khoroshilov@xxxxxxxxx> wrote:

> If cn_add_callback() fails in dm_ulog_tfr_init(), it does not
> deallocate prealloced memory but calls cn_del_callback().
> It looks like a misprint.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>

Signed-off-by: Jonathan Brassow <jbrassow@xxxxxxxxxx>

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