]> Pileus Git - ~andy/linux/blobdiff - drivers/remoteproc/remoteproc_virtio.c
virtio: support reserved vqs
[~andy/linux] / drivers / remoteproc / remoteproc_virtio.c
index 343c1941c12327f527be058f619b3aaad835a288..e7a4780e93db4fb8ab9c3134debc960930cd6906 100644 (file)
@@ -84,6 +84,9 @@ static struct virtqueue *rp_find_vq(struct virtio_device *vdev,
        if (id >= ARRAY_SIZE(rvdev->vring))
                return ERR_PTR(-EINVAL);
 
+       if (!name)
+               return NULL;
+
        ret = rproc_alloc_vring(rvdev, id);
        if (ret)
                return ERR_PTR(ret);