From: Alexey Khoroshilov Date: Wed, 1 Oct 2014 20:58:35 +0000 (+0200) Subject: dm log userspace: fix memory leak in dm_ulog_tfr_init failure path X-Git-Tag: v3.2.65~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df54425eb8653a399e45024941a4b977f12922d;p=pandora-kernel.git dm log userspace: fix memory leak in dm_ulog_tfr_init failure path commit 56ec16cb1e1ce46354de8511eef962a417c32c92 upstream. If cn_add_callback() fails in dm_ulog_tfr_init(), it does not deallocate prealloced memory but calls cn_del_callback(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Reviewed-by: Jonathan Brassow Signed-off-by: Mike Snitzer Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed