diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-10-17 14:11:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-17 16:25:06 +0200 |
commit | 30c516d750396c5f3ec9cb04c9e025c25e91495e (patch) | |
tree | 706414ddba2e8053d89899270e16f552c65479e6 /drivers/lightnvm | |
parent | block: fix Sphinx kernel-doc warning (diff) | |
download | linux-30c516d750396c5f3ec9cb04c9e025c25e91495e.tar.xz linux-30c516d750396c5f3ec9cb04c9e025c25e91495e.zip |
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: 2984c8684f96 ("nullb: factor disk parameters")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions