sysfs: Fix return values for sysdev_store_{ulong,int}
commit4e318d7c6c9dd5cdae48bcf61558bbc0c09b12ac
authorAndi Kleen <andi@firstfloor.org>
Mon, 13 Oct 2008 10:03:03 +0000 (13 12:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 29 Oct 2008 22:03:49 +0000 (29 15:03 -0700)
tree07d2c2b0e559cb121292eea21f1e63245deaa8c5
parent65151365ad59af00e229d0fe33b4f1f9350c685f
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