Joel Becker ff05d1c464 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>
2007-02-07 12:17:08 -08:00
..
2007-01-05 23:55:22 -08:00
2007-02-06 20:43:30 +00:00
2006-12-08 08:28:44 -08:00
2007-02-05 13:38:27 -05:00
2006-12-08 08:28:45 -08:00
2007-02-07 10:48:48 -05:00
2006-12-08 08:28:45 -08:00
2007-01-30 08:26:44 -08:00
2006-12-08 08:28:45 -08:00
2006-12-08 08:28:45 -08:00
2007-01-26 10:14:36 -06:00
2006-12-08 08:28:47 -08:00
2006-11-16 11:43:38 -08:00
2006-12-08 08:28:48 -08:00
2006-12-08 08:28:49 -08:00
2006-12-08 08:28:50 -08:00
2007-01-30 08:26:45 -08:00
2006-11-16 11:43:38 -08:00
2006-01-11 18:42:13 -08:00
2006-10-04 06:51:26 -06:00
2006-12-07 08:39:25 -08:00
2006-01-08 20:12:40 -08:00
2006-04-11 13:53:33 +02:00
2006-12-13 09:05:50 -08:00
2006-12-07 08:39:25 -08:00
2006-12-13 09:05:50 -08:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2006-12-13 09:05:47 -08:00
2006-12-22 08:55:48 -08:00