]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow_continue_command: ensure 'content' is properly initialised.
authorNeilBrown <neilb@suse.com>
Thu, 20 Apr 2017 02:40:05 +0000 (12:40 +1000)
committerJes Sorensen <jsorensen@fb.com>
Thu, 20 Apr 2017 16:56:21 +0000 (12:56 -0400)
commita250ce240f245df594570a5e25398680d403af67
tree47a3db342ccd75248c67fdd0ed86ee425d9e4b3a
parentb63804583e25fbc00b96c7f37f97d568b5b1ba9c
Grow_continue_command: ensure 'content' is properly initialised.

Grow_continue_command() call verify_reshape_position(), which assumes
that info->sys_name is initialised.
'info' in verify_reshape_position() is 'content' in Grow_continue_command().

In the st->ss->external != 0 branch of that function, sysfs_init() is called
to initialize content->sys_name.
In the st->ss->external == 0 branch, ->sys_name is not initialized so
verify_reshape_position() will not do the right thing.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c