Revert "virtio-net: don't let virtio core to validate used length"
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:44:13 +0000 (18:44 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:47:22 +0000 (18:47 -0500)
This reverts commit 816625c13652cef5b2c49082d652875da6f2ad7a.

Attempts to validate length in the core did not work out.
We'll drop them, so revert the dependent changes in drivers.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c

index 1771d6e5224fd834a4dfca4ba578134439d4d201..55db6a336f7ead862ab98ab99e4518a7d2b3b87f 100644 (file)
@@ -3423,7 +3423,6 @@ static struct virtio_driver virtio_net_driver = {
        .feature_table_size = ARRAY_SIZE(features),
        .feature_table_legacy = features_legacy,
        .feature_table_size_legacy = ARRAY_SIZE(features_legacy),
-       .suppress_used_validation = true,
        .driver.name =  KBUILD_MODNAME,
        .driver.owner = THIS_MODULE,
        .id_table =     id_table,