]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Manage.c
mdadm: fix wrong condition for go to abort
[thirdparty/mdadm.git] / Manage.c
index 0c7246dde5b50970bfa95046653ac252ca527c73..494cca9248e763ab1db475b3b7b7f75de9d7a339 100644 (file)
--- 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;
                        }