]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Add missing return in case of trying to grow sub-array
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 1 Nov 2011 03:55:14 +0000 (14:55 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 1 Nov 2011 03:55:14 +0000 (14:55 +1100)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 1a0185c96ac7aa260cd6b54fe697cb85884137c5..598fd595272c013c398b91709681a7045b86a22f 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -134,6 +134,7 @@ int Grow_Add_device(char *devname, int fd, char *newdev)
                fprintf(stderr, Name ": Cannot grow linear sub-arrays yet\n");
                free(subarray);
                free(st);
+               return 1;
        }
 
        nfd = open(newdev, O_RDWR|O_EXCL|O_DIRECT);