btrfs-progs: return error when canonicalize_path failed
authorEryu Guan <guaneryu@gmail.com>
Wed, 8 Oct 2014 09:42:29 +0000 (17:42 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 08:51:57 +0000 (10:51 +0200)
commitd601190a7df193ecf37a445fbb5a9a0999f28b21
tree37309d5619d32bf052d6016e410827e119837777
parent05499d865f061c258ef2a15b1ad5b650c991371a
btrfs-progs: return error when canonicalize_path failed

Error out cmd_start_replace() if canonicalize_path() dstdev failed, add
the missing "goto leave_with_error;"

Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-replace.c