https://github.com/torvalds/linux
Revision c008f1d356277a5b7561040596a073d87e56b0c8 authored by NeilBrown on 12 June 2015, 09:46:44 UTC, committed by NeilBrown on 12 June 2015, 10:16:16 UTC
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+)
1 parent c65b99f
History
Tip revision: c008f1d356277a5b7561040596a073d87e56b0c8 authored by NeilBrown on 12 June 2015, 09:46:44 UTC
md: don't return 0 from array_state_store
Tip revision: c008f1d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 303.1 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top