Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / drivers / net / virtio_net.c
index 110a2cf67244c8946a295c09d7c63b3297f0f0d3..f1ff3666f090d886e6b8ecc99bc6ac09d8687ef6 100644 (file)
@@ -1710,6 +1710,12 @@ static int virtnet_probe(struct virtio_device *vdev)
        struct virtnet_info *vi;
        u16 max_queue_pairs;
 
+       if (!vdev->config->get) {
+               dev_err(&vdev->dev, "%s failure: config access disabled\n",
+                       __func__);
+               return -EINVAL;
+       }
+
        if (!virtnet_validate_features(vdev))
                return -EINVAL;
 
This page took 0.035795 seconds and 5 git commands to generate.