commit | 93e3cd8270d036953120eca83610f95d3f7374c6 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Thu Jun 14 03:45:13 2007 +0900 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Jul 11 16:09:03 2007 -0700 |
tree | 8f5bc27cd1d7b28cafd4dd2bdbaabf0f16feb6c8 | |
parent | 7a23ad44047b1084a032bc0d127fe08af024593a [diff] |
sysfs: fix error handling in binattr write() Error handling in fs/sysfs/bin.c:write() was wrong because size_t count is used to receive return value from flush_write() which is negative on failure. This patch updates write() such that int variable is used instead. read() is updated the same way for consistency. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>