linux-stable/drivers/block/null_blk
Damien Le Moal fbbd5d3ad9 nullblk: Fix cleanup order in null_add_dev() error path
In null_add_dev(), if an error happen after initializing the resources
for a zoned null block device, we must free these resources before
exiting the function. To ensure this, move the out_cleanup_zone label
after out_cleanup_disk as we jump to this latter label if an error
happens after calling null_init_zoned_dev().

Fixes: e440626b1c ("null_blk: pass queue_limits to blk_mq_alloc_disk")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240330005300.1503252-1-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-04-02 07:43:24 -06:00
..
Kconfig block: null_blk: make fault-injection dynamically configurable per device 2023-04-13 07:38:55 -06:00
Makefile
main.c nullblk: Fix cleanup order in null_add_dev() error path 2024-04-02 07:43:24 -06:00
null_blk.h null_blk: Delete nullb.{queue_depth, nr_queues} 2024-02-22 10:08:47 -07:00
trace.c
trace.h null_blk: remove the bio based I/O path 2024-02-20 06:21:27 -07:00
zoned.c null_blk: pass queue_limits to blk_mq_alloc_disk 2024-02-20 06:21:27 -07:00