From: Mike Snitzer Date: Thu, 20 Feb 2014 01:32:33 +0000 (-0500) Subject: dm thin: fix the error path for the thin device constructor X-Git-Tag: v3.14-rc5~11^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1acacc0784aab45627b6009e0e9224886279ac0b;p=pandora-kernel.git dm thin: fix the error path for the thin device constructor dm_pool_close_thin_device() must be called if dm_set_target_max_io_len() fails in thin_ctr(). Otherwise __pool_destroy() will fail because the pool will still have an open thin device: device-mapper: thin metadata: attempt to close pmd when 1 device(s) are still open device-mapper: thin: __pool_destroy: dm_pool_metadata_close() failed. Also, must establish error code if failing thin_ctr() because the pool is in fail_io mode. Signed-off-by: Mike Snitzer Acked-by: Joe Thornber Cc: stable@vger.kernel.org --- Reading git-diff-tree failed