From: Dave Reisner Date: Sat, 8 Sep 2012 15:55:45 +0000 (-0400) Subject: block: reject invalid queue attribute values X-Git-Tag: v3.7-rc1~54^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1f3b64d76cf88cc250e5cdd1de783ba9737078e;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed