Files
Linux/fs/debugfs
Mathias Krause a3b2c8c7aa debugfs: write_file_bool() - ensure strtobool() operates on valid data
In case, userland writes an empty string to a bool debugfs file, buf[]
will still be uninitialized when being passed to strtobool() making the
outcome of that function purely random.

Fix this by always zero-terminating the buffer.

Signed-off-by: Mathias Krause <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2013-06-03 13:55:02 -07:00
..
…