]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: match the type of parameter nr_devices
authorAndré Almeida <andrealmeid@collabora.com>
Mon, 16 Sep 2019 14:07:58 +0000 (11:07 -0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Sep 2019 14:38:27 +0000 (08:38 -0600)
commite809d7de7dea876adef0c4bbe4915bd7c15cc13b
tree7f635176a79e85fd6fe4ba24119b64c895a9ebed
parent81a0152f77c6945637fd87b6bb5182b36233db15
null_blk: match the type of parameter nr_devices

Since the variable nr_devices is an unsigned int, the module_param()
should also use this type. Change the type so they can match.

Fixes: e20952aca6b2 ("null_blk: validate the number of devices")
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c