From: Adam Kwolek Date: Thu, 9 Jun 2011 03:00:55 +0000 (+1000) Subject: imsm: FIX: Do not verify unused parameters X-Git-Tag: mdadm-3.2.2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ab242d891e639f756a8f3be678e68d7d3d5b55d;p=thirdparty%2Fmdadm.git imsm: FIX: Do not verify unused parameters Parameters that are not used by imsm_manage_reshape() should not cause failure of this function. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 0ac3827d..fad90d2b 100644 --- a/super-intel.c +++ b/super-intel.c @@ -8688,7 +8688,7 @@ static int imsm_manage_reshape( unsigned long long start_buf_shift; /* [bytes] */ int degraded = 0; - if (!fds || !offsets || !destfd || !destoffsets || !sra) + if (!fds || !offsets || !sra) goto abort; /* Find volume during the reshape */