summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorTejun Heo2007-06-13 20:45:13 +0200
committerGreg Kroah-Hartman2007-07-12 01:09:03 +0200
commit93e3cd8270d036953120eca83610f95d3f7374c6 (patch)
tree8f5bc27cd1d7b28cafd4dd2bdbaabf0f16feb6c8 /Kbuild
parentsysfs: make sysfs_put() ignore NULL sd (diff)
downloadkernel-qcow2-linux-93e3cd8270d036953120eca83610f95d3f7374c6.tar.gz
kernel-qcow2-linux-93e3cd8270d036953120eca83610f95d3f7374c6.tar.xz
kernel-qcow2-linux-93e3cd8270d036953120eca83610f95d3f7374c6.zip
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>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions