summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2021-11-04 00:04:29 +0100
committerJens Axboe <axboe@kernel.dk>2021-11-04 12:48:50 +0100
commit5a192ccc32e2981f721343c750b8cfb4c3f41007 (patch)
treee1fbde99aea2d1af47f1dd33368625dd5890a34e /drivers/block
parentnvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigned (diff)
downloadlinux-5a192ccc32e2981f721343c750b8cfb4c3f41007.tar.xz
linux-5a192ccc32e2981f721343c750b8cfb4c3f41007.zip
nvdimm/pmem: use add_disk() error handling
Now that device_add_disk() supports returning an error, use that. We must unwind alloc_dax() on error. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Link: https://lore.kernel.org/r/20211103230437.1639990-7-mcgrof@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions