diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2015-07-06 10:52:10 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-07-29 09:26:12 +0200 |
commit | d7a493695a462ed938d76c181f6f76fb4140597c (patch) | |
tree | 038a757e6b94b4b8118c55cba4c58fc37e5e172d /Manage.c | |
parent | Assemble: don't assemble IMSM array without OROM. (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |