|
@@ -1986,6 +1986,12 @@ static int virtcons_probe(struct virtio_device *vdev)
|
|
bool multiport;
|
|
bool multiport;
|
|
bool early = early_put_chars != NULL;
|
|
bool early = early_put_chars != NULL;
|
|
|
|
|
|
|
|
+ if (!vdev->config->get) {
|
|
|
|
+ dev_err(&vdev->dev, "%s failure: config access disabled\n",
|
|
|
|
+ __func__);
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* Ensure to read early_put_chars now */
|
|
/* Ensure to read early_put_chars now */
|
|
barrier();
|
|
barrier();
|
|
|
|
|