From d7a493695a462ed938d76c181f6f76fb4140597c Mon Sep 17 00:00:00 2001 From: Guoqing Jiang Date: Mon, 6 Jul 2015 16:52:10 +0800 Subject: [PATCH] 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 --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2