]> 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)
commit634f97604ed905d88b8c833b7256bb8fbb599988
tree7f635176a79e85fd6fe4ba24119b64c895a9ebed
parent2168dc7d28b3d8726e264cf79a43682d3581321b
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: 44bda2037961 ("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