commit | c008f1d356277a5b7561040596a073d87e56b0c8 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Fri Jun 12 19:46:44 2015 +1000 |
committer | NeilBrown <neilb@suse.de> | Fri Jun 12 20:16:16 2015 +1000 |
tree | 6d7eb913a79b11f8ed9beee30c81eca81e271ed2 | |
parent | c65b99f046843d2455aa231747b5a07a999a9f3d [diff] |
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 <neilb@suse.de> Cc: stable@vger.kernel (v4.0+)