remarkable-linux/fs/sysfs
Tejun Heo 93e3cd8270 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>
2007-07-11 16:09:03 -07:00
..
bin.c sysfs: fix error handling in binattr write() 2007-07-11 16:09:03 -07:00
dir.c sysfs: allocate inode number using ida 2007-07-11 16:09:03 -07:00
file.c use simple_read_from_buffer() in fs/ 2007-05-09 12:30:49 -07:00
group.c security: prevent permission checking of file removal via sysfs_remove_group() 2007-04-27 10:57:33 -07:00
inode.c sysfs: fix race condition around sd->s_dentry, take#2 2007-06-12 16:08:47 -07:00
Makefile
mount.c sysfs: store sysfs inode nrs in s_ino to avoid readdir oopses 2007-06-12 16:08:46 -07:00
symlink.c [PATCH] mark struct inode_operations const 3 2007-02-12 09:48:46 -08:00
sysfs.h sysfs: make sysfs_put() ignore NULL sd 2007-07-11 16:09:03 -07:00