diff options
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 7e0efa7fc384..dd6df979862b 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -119,6 +119,9 @@ static void vp_finalize_features(struct virtio_device *vdev) | |||
119 | /* Give virtio_ring a chance to accept features. */ | 119 | /* Give virtio_ring a chance to accept features. */ |
120 | vring_transport_features(vdev); | 120 | vring_transport_features(vdev); |
121 | 121 | ||
122 | /* Make sure we don't have any features > 32 bits! */ | ||
123 | BUG_ON((u32)vdev->features != vdev->features); | ||
124 | |||
122 | /* We only support 32 feature bits. */ | 125 | /* We only support 32 feature bits. */ |
123 | iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); | 126 | iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); |
124 | } | 127 | } |