summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2019-09-11 16:46:36 +0200
committerJens Axboe <axboe@kernel.dk>2019-09-12 00:04:25 +0200
commitf7c4ce890dd23f2d41ad9630263aad6e9720af58 (patch)
tree342c22408ea5245be96bf4c4461d74555c90ea09 /block
parentnull_blk: fix module name at log message (diff)
downloadlinux-f7c4ce890dd23f2d41ad9630263aad6e9720af58.tar.xz
linux-f7c4ce890dd23f2d41ad9630263aad6e9720af58.zip
null_blk: validate the number of devices
A negative number of devices is nonsensical, so change the type to unsigned. If the number of devices is 0, it is impossible for userspace to interact with the module, so refuse loading the driver for that case. Signed-off-by: André Almeida <andrealmeid@collabora.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions