Dave Reisner b1f3b64d76 block: reject invalid queue attribute values
Instead of using simple_strtoul which "converts" invalid numbers to 0,
use strict_strtoul and perform error checking to ensure that userspace
passes us a valid unsigned long. This addresses problems with functions
such as writev, which might want to write a trailing newline -- the
newline should rightfully be rejected, but the value preceeding it
should be preserved.

Fixes BZ#46981.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-09 10:39:18 +02:00
..
2012-08-02 23:42:04 +02:00
2011-12-29 09:16:28 +01:00
2012-08-01 12:25:54 +02:00
2012-02-08 20:02:03 +01:00
2012-01-11 16:29:31 +01:00
2012-01-03 22:54:06 -05:00