summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2013-05-31 23:24:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-03 22:55:02 +0200
commita3b2c8c7aa1ca860edcf0b0afa371d9eb2269c3c (patch)
tree45f73dde89f44a0dd67e26859effd3cbe90286d8 /fs/f2fs/segment.c
parentdebugfs: add get/set for atomic types (diff)
downloadlinux-a3b2c8c7aa1ca860edcf0b0afa371d9eb2269c3c.tar.xz
linux-a3b2c8c7aa1ca860edcf0b0afa371d9eb2269c3c.zip
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 <minipli@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions