• NeilBrown's avatar
    md: don't return 0 from array_state_store · c008f1d3
    NeilBrown authored
    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: 6791875e ("md: make reconfig_mutex optional for writes to md sysfs files.")
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Cc: stable@vger.kernel (v4.0+)
    c008f1d3
md.c 233 KB