From: Guoqing Jiang Date: Mon, 6 Jul 2015 08:52:10 +0000 (+0800) Subject: mdadm: fix wrong condition for go to abort X-Git-Tag: mdadm-3.4~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7a493695a462ed938d76c181f6f76fb4140597c;p=thirdparty%2Fmdadm.git 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 Signed-off-by: NeilBrown --- 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; }