OpenCloudOS-Kernel/drivers/block/null_blk
Dan Carpenter ee452a8d98 null_blk: fix ida error handling in null_add_dev()
There needs to be some error checking if ida_simple_get() fails.
Also call ida_free() if there are errors later.

Fixes: 94bc02e30f ("nullb: use ida to manage index")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YtEhXsr6vJeoiYhd@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-08-02 17:22:41 -06:00
..
Kconfig null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
Makefile null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
main.c null_blk: fix ida error handling in null_add_dev() 2022-08-02 17:22:41 -06:00
null_blk.h null_blk: add configfs variables for 2 options 2022-08-02 17:15:02 -06:00
trace.c null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
trace.h treewide: Rename enum req_opf into enum req_op 2022-07-14 12:14:30 -06:00
zoned.c treewide: Rename enum req_opf into enum req_op 2022-07-14 12:14:30 -06:00