Skip to content
Commit 30c516d7 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jens Axboe
Browse files

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: 2984c868 ("nullb: factor disk parameters")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 519c8e9f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment