bfq: Check kstrtoul() return value
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 30 Aug 2017 18:42:09 +0000 (11:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Sep 2017 19:56:39 +0000 (13:56 -0600)
commit2f79136ba2df07ce7563158f7948c4ce770f8132
tree2a68b34d5162b00bf65a3fcb8f32d61eaa31623a
parentdfb79af5469a028e23ba2592a577d9b6f8a5651f
bfq: Check kstrtoul() return value

Make sysfs writes fail for invalid numbers instead of storing
uninitialized data copied from the stack. This patch removes
all uninitialized_var() occurrences from the BFQ source code.

Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c