]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Fix return values for sysdev_store_{ulong,int}
authorAndi Kleen <andi@firstfloor.org>
Mon, 13 Oct 2008 10:03:03 +0000 (12:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 29 Oct 2008 22:03:49 +0000 (15:03 -0700)
commit88ddc07a0aa08a3eca958a167dd62fde61f7a872
tree07d2c2b0e559cb121292eea21f1e63245deaa8c5
parent8e3f33c6eeef64625b506ccdd52c5229040f2f01
sysfs: Fix return values for sysdev_store_{ulong,int}

SYSFS: Fix return values for sysdev_store_{ulong,int}

Always return the full size instead of the consumed
length of the string in sysdev_store_{ulong,int}

This avoids EINVAL errors in some echo versions.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c