From: Mike Snitzer Date: Wed, 7 Mar 2012 19:09:41 +0000 (+0000) Subject: dm thin metadata: remove incorrect close_device on creation error paths X-Git-Tag: v3.3-rc7~17^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3db25d8be4ac50b897b39609802183ea68a514;p=pandora-kernel.git dm thin metadata: remove incorrect close_device on creation error paths The __open_device() error paths in __create_thin() and __create_snap() incorrectly call __close_device() even if td was not initialized by __open_device(). Remove this. Also document __open_device() return values, remove a redundant td->changed = 1 in __create_thin(), and insert an additional safeguard against creating an already-existing device. Signed-off-by: Mike Snitzer Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed