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)
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>

No differences found