diff options
author | Joel Becker <joel.becker@oracle.com> | 2007-01-23 17:00:45 -0800 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-02-07 12:17:08 -0800 |
commit | ff05d1c4643dd4260eb699396043d7e8009c0de4 (patch) | |
tree | fe3c601c3c8a2498c434a2d2c08e0192b4233299 /sound/pci/emu10k1/emu10k1x.c | |
parent | b559292e066f6d570cd5aa5dbd41de61dd04bdce (diff) |
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 'sound/pci/emu10k1/emu10k1x.c')
0 files changed, 0 insertions, 0 deletions