floppy: address add_disk() error handling on probe
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 3 Nov 2021 23:04:36 +0000 (16:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Nov 2021 11:48:50 +0000 (05:48 -0600)
commitec28fcc6cfcd418d20038ad2c492e87bf3a9f026
tree9d84b13468c6aac38d4a7546a7688af0503ea98b
parent46a7db492e7a27408bc164cbe6424683e79529b0
floppy: address add_disk() error handling on probe

We need to cleanup resources on the probe() callback registered
with __register_blkdev(), now that add_disk() error handling is
supported. Address this.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211103230437.1639990-14-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c