diff options
author | Thomas Maier <balagi@justmail.de> | 2006-10-22 19:17:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 14:52:01 -0800 |
commit | 035ed7a49447bc8e15d4d9316fc6a359b2d94333 (patch) | |
tree | 2607c8c03a719e4aa4bbbe46ca4ee3eb490755b5 /lib/locking-selftest-rlock-softirq.h | |
parent | 06a4bcae1ff2cd5f6f42bd74add85ec785a26343 (diff) | |
download | blackbird-op-linux-035ed7a49447bc8e15d4d9316fc6a359b2d94333.tar.gz blackbird-op-linux-035ed7a49447bc8e15d4d9316fc6a359b2d94333.zip |
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>
Diffstat (limited to 'lib/locking-selftest-rlock-softirq.h')
0 files changed, 0 insertions, 0 deletions