summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-06-12 11:46:44 +0200
committerNeilBrown <neilb@suse.de>2015-06-12 12:16:16 +0200
commitc008f1d356277a5b7561040596a073d87e56b0c8 (patch)
tree6d7eb913a79b11f8ed9beee30c81eca81e271ed2 /drivers/md/raid5.c
parentLinux 4.1-rc6 (diff)
downloadlinux-c008f1d356277a5b7561040596a073d87e56b0c8.tar.xz
linux-c008f1d356277a5b7561040596a073d87e56b0c8.zip
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+)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions