From: mwilck@arcor.de Date: Fri, 19 Jul 2013 19:04:10 +0000 (+0200) Subject: DDF: err_bad_md_layout: fix return value X-Git-Tag: mdadm-3.3-rc2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aba583f287d9828360622637975e64f35d7337b;p=thirdparty%2Fmdadm.git DDF: err_bad_md_layout: fix return value This function must use -1 to indicate failure. Fix it. Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index 8c6fa6d7..e23291f1 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -500,7 +500,7 @@ static int err_bad_md_layout(const mdu_array_info_t *array) { pr_err("RAID%d layout %x with %d disks is unsupported for DDF\n", array->level, array->layout, array->raid_disks); - return DDF_INVALID_LEVEL; + return -1; } static int layout_md2ddf(const mdu_array_info_t *array,