aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bio.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2007-01-23 17:00:45 -0800
committerMark Fasheh <mark.fasheh@oracle.com>2007-02-07 12:17:08 -0800
commitff05d1c4643dd4260eb699396043d7e8009c0de4 (patch)
treefe3c601c3c8a2498c434a2d2c08e0192b4233299 /fs/bio.c
parent[PATCH] ocfs2 heartbeat: clean up bio submission code (diff)
downloadlinux-dev-ff05d1c4643dd4260eb699396043d7e8009c0de4.tar.xz
linux-dev-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 'fs/bio.c')
0 files changed, 0 insertions, 0 deletions