WSL2-Linux-Kernel/drivers/block/null_blk
Luis Chamberlain 10e7123d55 null_blk: add error handling support for add_disk()
We never checked for errors on add_disk() as this function
returned void. Now that this is fixed, use the shiny new
error handling. The actual cleanup in case of error is
already handled by the caller of null_gendisk_register().

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210818144542.19305-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-08-23 12:55:46 -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: add error handling support for add_disk() 2021-08-23 12:55:46 -06:00
null_blk.h for-5.13/drivers-2021-04-27 2021-04-28 14:39:37 -07:00
trace.c null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
trace.h null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
zoned.c drivers/block/null_blk/main: Fix a double free in null_init. 2021-04-26 09:04:40 -06:00