From: NeilBrown Date: Fri, 12 Jun 2015 09:46:44 +0000 (+1000) Subject: md: don't return 0 from array_state_store X-Git-Tag: omap-for-v4.2/fixes-rc1^2~207^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c008f1d356277a5b7561040596a073d87e56b0c8;p=pandora-kernel.git md: don't return 0 from array_state_store Returning zero from a 'store' function is bad. The return value should be either len length of the string or an error. So use 'len' if 'err' is zero. Fixes: 6791875e2e53 ("md: make reconfig_mutex optional for writes to md sysfs files.") Signed-off-by: NeilBrown Cc: stable@vger.kernel (v4.0+) --- Reading git-diff-tree failed