Add missing return in case of trying to grow sub-array

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Jes Sorensen 2011-11-01 14:55:14 +11:00 committed by NeilBrown
parent c9aaf5effb
commit 2641101b2f
1 changed files with 1 additions and 0 deletions

1
Grow.c
View File

@ -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);