diff options
author | Matias Bjørling <m@bjorling.me> | 2016-02-11 16:49:13 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-02-11 18:56:09 +0300 |
commit | a514379b0c77085074abf01c525a850f6d99926e (patch) | |
tree | ed0a0c9368e06db907c7d0e58dddf27df7fe0558 /block/blk-mq-cpu.c | |
parent | 39a169b62b415390398291080dafe63aec751e0a (diff) | |
download | linux-a514379b0c77085074abf01c525a850f6d99926e.tar.xz |
null_blk: oops when initializing without lightnvm
If the LightNVM subsystem is not compiled into the kernel, and the
null_blk device driver requests lightnvm to be initialized. The call to
nvm_register fails and the null_add_dev function cleans up the
initialization. However, at this point the null block device has
already been added to the nullb_list and thus a second cleanup will
occur when the function has returned, that leads to a double call to
blk_cleanup_queue.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-cpu.c')
0 files changed, 0 insertions, 0 deletions