Grow: make sure 'info' doesn't have confusing data.

We now test ->reshape_active, but don't set it in a common case.

So just zero out the whole structure to be on the safe side.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-03-10 15:36:07 +11:00
parent e2e53a2da5
commit 8ff6d0946c
1 changed files with 1 additions and 0 deletions

1
Grow.c
View File

@ -1508,6 +1508,7 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file,
ping_monitor(container);
}
memset(&info, 0, sizeof(info));
info.array = array;
sysfs_init(&info, fd, NoMdDev);
strcpy(info.text_version, sra->text_version);