linux/fs/sysfs
Thomas Maier 035ed7a494 sysfs: sysfs_write_file() writes zero terminated data
since most of the files in sysfs are text files,
it would be nice, if the "store" function called
during sysfs_write_file() gets a zero terminated
string / data.
The current implementation seems not to ensure this.
(But only if it is the first time the zeroed buffer
page is allocated.)

So the buffer can be scanned by sscanf() easily,
for example.

This patch simply sets a \0 char behind the
data in buffer->page.

Signed-off-by: Thomas Maier <balagi@justmail.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-12-01 14:52:01 -08:00
..
bin.c sysfs_remove_bin_file: no return value, dump_stack on error 2006-09-25 21:08:39 -07:00
dir.c [PATCH] r/o bind mount prepwork: inc_nlink() helper 2006-10-01 00:39:30 -07:00
file.c sysfs: sysfs_write_file() writes zero terminated data 2006-12-01 14:52:01 -08:00
group.c [PATCH] remove duplicate get_dentry functions in various places 2005-06-23 09:45:20 -07:00
inode.c [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c [PATCH] r/o bind mount prepwork: inc_nlink() helper 2006-10-01 00:39:30 -07:00
symlink.c SYSFS: allow sysfs_create_link to create symlinks in the root of sysfs 2006-09-25 21:08:36 -07:00
sysfs.h sysfs_remove_bin_file: no return value, dump_stack on error 2006-09-25 21:08:39 -07:00