]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
FIX: Use successfully loaded metadata only
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 14 Apr 2011 07:50:17 +0000 (17:50 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 14 Apr 2011 07:50:17 +0000 (17:50 +1000)
commit77f8d358b574797453299ca9a3094b02552d02de
tree65fda03f616a382d67ddcdfa7445f1d3c5e725c7
parent2cf311211179ba2456c8b73b0153c2afc6e401a5
FIX: Use successfully loaded metadata only

Values greater than 0, means error. We exit from loop on error
with empty super-block pointer when sd pointer is valid.
This cannot be detected by check condition as error.
For sure we shouldn't go forward with error condition.
It leads to throwing exception with core file when metadata handler
wants to access non existing super-block.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c