summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2015-07-06 10:52:10 +0200
committerNeilBrown <neilb@suse.com>2015-07-29 09:26:12 +0200
commitd7a493695a462ed938d76c181f6f76fb4140597c (patch)
tree038a757e6b94b4b8118c55cba4c58fc37e5e172d /Manage.c
parentAssemble: don't assemble IMSM array without OROM. (diff)
downloadmdadm-d7a493695a462ed938d76c181f6f76fb4140597c.tar.xz
mdadm-d7a493695a462ed938d76c181f6f76fb4140597c.zip
mdadm: fix wrong condition for go to abort
When parse_cluster_confirm_arg return 0, it means the arg are parsed successfully, so change !rv to rv. Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Manage.c b/Manage.c
index 0c7246dd..494cca92 100644
--- a/Manage.c
+++ b/Manage.c
@@ -1336,7 +1336,7 @@ int Manage_subdevs(char *devname, int fd,
rv = parse_cluster_confirm_arg(dv->devname,
&dv->devname,
&raid_slot);
- if (!rv) {
+ if (rv) {
pr_err("Could not get the devname of cluster\n");
goto abort;
}