summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2007-01-24 02:00:45 +0100
committerMark Fasheh <mark.fasheh@oracle.com>2007-02-07 21:17:08 +0100
commitff05d1c4643dd4260eb699396043d7e8009c0de4 (patch)
treefe3c601c3c8a2498c434a2d2c08e0192b4233299 /block
parent[PATCH] ocfs2 heartbeat: clean up bio submission code (diff)
downloadlinux-ff05d1c4643dd4260eb699396043d7e8009c0de4.tar.xz
linux-ff05d1c4643dd4260eb699396043d7e8009c0de4.zip
configfs: Zero terminate data in configfs attribute writes.
Attributes in configfs are text files. As such, most handlers expect to be able to call functions like simple_strtoul() without checking the bounds of the buffer. Change the call to zero terminate the buffer before calling the client's ->store() method. This does reduce the attribute size from PAGE_SIZE to PAGE_SIZE-1. Also, change get_zeroed_page() to alloc_page(), as we are handling the termination. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions