]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: Fix wrong 'goto' in set_new_data_offset
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Thu, 27 Nov 2014 11:35:24 +0000 (12:35 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 1 Dec 2014 22:52:34 +0000 (09:52 +1100)
commit16afb1a5efb59b45db9ee46dad7cc410aabbe90e
tree05233374cba2b12ef4d04534e42128b77a195ff4
parent9a518d81fe614d4fd8391c94bc99d5458cd3324f
Grow: Fix wrong 'goto' in set_new_data_offset

Commit a821c95f114724b38df1ea99b2858178e0ed28ce
besides introducing additional message, also changed
direct return to "goto" instruction.
'goto release' will cause routine to return with '-1',
when previously '1' was returned.
Described behaviour breaks e.g. IMSM reshape process.
This patch fixes this issue by changing 'goto' to proper one -
the one that returns '1'.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c