Message ID | 20211103165843.1402142-1-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v3] nvdimm/btt: do not call del_gendisk() if not needed | expand |
On Wed, 3 Nov 2021 09:58:43 -0700, Luis Chamberlain wrote: > del_gendisk() should not called if the disk has not been added. Fix this. > > Applied, thanks! [1/1] nvdimm/btt: do not call del_gendisk() if not needed commit: 3aefb5ee843fbe4789d03bb181e190d462df95e4 Best regards,
diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c index f10a50ffa047..a62f23b945f1 100644 --- a/drivers/nvdimm/btt.c +++ b/drivers/nvdimm/btt.c @@ -1537,7 +1537,6 @@ static int btt_blk_init(struct btt *btt) int rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt)); if (rc) { - del_gendisk(btt->btt_disk); blk_cleanup_disk(btt->btt_disk); return rc; }