android_kernel_xiaomi_sm8350/fs/sysfs
Oliver Neukum 82244b169e sysfs: error handling in sysfs, fill_read_buffer()
if a driver returns an error in fill_read_buffer(), the buffer will be
marked as filled. Subsequent reads will return eof. But there is
no data because of an error, not because it has been read.
Not marking the buffer filled is the obvious fix.

Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-02-07 10:37:13 -08:00
..
bin.c sysfs: kobject_put cleanup 2007-02-07 10:37:13 -08:00
dir.c Driver core: fix race in sysfs between sysfs_remove_file() and read()/write() 2007-02-07 10:37:13 -08:00
file.c sysfs: error handling in sysfs, fill_read_buffer() 2007-02-07 10:37:13 -08:00
group.c Driver core: fix race in sysfs between sysfs_remove_file() and read()/write() 2007-02-07 10:37:13 -08:00
inode.c sysfs: suppress lockdep warnings 2007-02-07 10:37:13 -08:00
Makefile
mount.c Driver core: fix race in sysfs between sysfs_remove_file() and read()/write() 2007-02-07 10:37:13 -08:00
symlink.c Driver core: fix race in sysfs between sysfs_remove_file() and read()/write() 2007-02-07 10:37:13 -08:00
sysfs.h Driver core: fix race in sysfs between sysfs_remove_file() and read()/write() 2007-02-07 10:37:13 -08:00