aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/kvm/virtio_ccw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/kvm/virtio_ccw.c')
-rw-r--r--drivers/s390/kvm/virtio_ccw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c
index 56d78956a8cb..244d611a0df2 100644
--- a/drivers/s390/kvm/virtio_ccw.c
+++ b/drivers/s390/kvm/virtio_ccw.c
@@ -714,6 +714,9 @@ static void virtio_ccw_finalize_features(struct virtio_device *vdev)
714 /* Give virtio_ring a chance to accept features. */ 714 /* Give virtio_ring a chance to accept features. */
715 vring_transport_features(vdev); 715 vring_transport_features(vdev);
716 716
717 /* Make sure we don't have any features > 32 bits! */
718 BUG_ON((u32)vdev->features != vdev->features);
719
717 features->index = 0; 720 features->index = 0;
718 features->features = cpu_to_le32(vdev->features); 721 features->features = cpu_to_le32(vdev->features);
719 /* Write the feature bits to the host. */ 722 /* Write the feature bits to the host. */