X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fremoteproc%2Fremoteproc_virtio.c;h=e7a4780e93db4fb8ab9c3134debc960930cd6906;hb=6457f126c888b3481fdae6f702e616cd0c79646e;hp=343c1941c12327f527be058f619b3aaad835a288;hpb=75a0a52be3c27b58654fbed2c8f2ff401482b9a4;p=~andy%2Flinux diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index 343c1941c12..e7a4780e93d 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -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);