From: Mathias Krause Date: Fri, 31 May 2013 21:24:29 +0000 (+0200) Subject: debugfs: write_file_bool() - ensure strtobool() operates on valid data X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~74^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3b2c8c7aa1ca860edcf0b0afa371d9eb2269c3c;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed