Luis Chamberlain 5a192ccc32 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>
2021-11-04 05:48:50 -06:00
..
2021-07-21 11:53:42 +02:00
2021-09-09 11:48:27 -07:00
2019-07-16 19:44:26 -07:00
2021-08-24 12:08:28 -07:00
2020-08-11 10:59:19 -07:00