diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-09-08 17:55:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-09-09 10:39:18 +0200 |
commit | b1f3b64d76cf88cc250e5cdd1de783ba9737078e (patch) | |
tree | c7ec8496a2b9a8af239fa78090f65178f30063c7 /block/partitions/ultrix.c | |
parent | block: Add bio_clone_bioset(), bio_clone_kmalloc() (diff) | |
download | linux-b1f3b64d76cf88cc250e5cdd1de783ba9737078e.tar.xz linux-b1f3b64d76cf88cc250e5cdd1de783ba9737078e.zip |
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>
Diffstat (limited to 'block/partitions/ultrix.c')
0 files changed, 0 insertions, 0 deletions