]> git.baikalelectronics.ru Git - kernel.git/commit
nullb: fix error return code in null_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 17 Oct 2017 12:11:46 +0000 (12:11 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Oct 2017 14:25:06 +0000 (08:25 -0600)
commit2b80e044e13af0ae150aacf63d86c630c635b5ca
tree706414ddba2e8053d89899270e16f552c65479e6
parent5f68726bfec8d0bdecbcdaa2786c7accca4a5d8c
nullb: fix error return code in null_init()

Fix to return error code -ENOMEM from the null_alloc_dev() error
handling case instead of 0, as done elsewhere in this function.

Fixes: e80f5c8318e2 ("nullb: factor disk parameters")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c