From: Andre Noll Date: Tue, 16 Jun 2009 06:47:21 +0000 (+1000) Subject: md: raid0: Make raid0_run() return a proper error code. X-Git-Tag: v2.6.31-rc1~143^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5568a6035d9fca2cd8f1ef7005e215eae4e65fab;p=pandora-kernel.git md: raid0: Make raid0_run() return a proper error code. Currently raid0_run() always returns -ENOMEM on errors. This is incorrect as running the array might fail for other reasons, for example because not all component devices were available. This patch changes create_strip_zones() so that it returns a proper error code (either -ENOMEM or -EINVAL) rather than 1 on errors and makes raid0_run(), its single caller, return that value instead of -ENOMEM. Signed-off-by: Andre Noll Signed-off-by: NeilBrown --- Reading git-diff-tree failed