|
@@ -3076,6 +3076,7 @@ static void scsi_disk_release(struct device *dev)
|
|
ida_remove(&sd_index_ida, sdkp->index);
|
|
ida_remove(&sd_index_ida, sdkp->index);
|
|
spin_unlock(&sd_index_lock);
|
|
spin_unlock(&sd_index_lock);
|
|
|
|
|
|
|
|
+ blk_integrity_unregister(disk);
|
|
disk->private_data = NULL;
|
|
disk->private_data = NULL;
|
|
put_disk(disk);
|
|
put_disk(disk);
|
|
put_device(&sdkp->device->sdev_gendev);
|
|
put_device(&sdkp->device->sdev_gendev);
|