summaryrefslogtreecommitdiffstats
path: root/net
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 /net
parentb559292e066f6d570cd5aa5dbd41de61dd04bdce (diff)
downloadop-kernel-dev-ff05d1c4643dd4260eb699396043d7e8009c0de4.zip
op-kernel-dev-ff05d1c4643dd4260eb699396043d7e8009c0de4.tar.gz
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 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud