]> git.ipfire.org Git - people/ms/linux.git/commit
sysfs: Fix return values for sysdev_store_{ulong, int}
authorAndi Kleen <andi@firstfloor.org>
Thu, 30 Oct 2008 19:10:08 +0000 (19:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:37 +0000 (19:05 -0800)
commitea6ac1ac96a384b213d65c28d9e3d62f74b0267e
tree2b7800463715390f2d2473dcd539b8be14ac10d0
parent4c49d126ab91fdd12801e216105fa35f5a915781
sysfs: Fix return values for sysdev_store_{ulong, int}

commit 4e318d7c6c9dd5cdae48bcf61558bbc0c09b12ac upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c