From: Andrei Warkentin Date: Wed, 28 Mar 2012 17:41:22 +0000 (+0100) Subject: dm exception store: fix init error path X-Git-Tag: firefly_0821_release~3680^2~3229^2~26 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aadbe266f2f89ccc68b52f4effc7b3a8b29521ef;p=firefly-linux-kernel-4.4.55.git dm exception store: fix init error path Call the correct exit function on failure in dm_exception_store_init. Signed-off-by: Andrei Warkentin Acked-by: Mike Snitzer Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 042e71996569..aa70f7d43a1a 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -283,7 +283,7 @@ int dm_exception_store_init(void) return 0; persistent_fail: - dm_persistent_snapshot_exit(); + dm_transient_snapshot_exit(); transient_fail: return r; }