|
@@ -217,7 +217,7 @@ int rproc_alloc_vring(struct rproc_vdev *rvdev, int i)
|
|
|
* TODO: support predefined notifyids (via resource table)
|
|
|
*/
|
|
|
ret = idr_alloc(&rproc->notifyids, rvring, 0, 0, GFP_KERNEL);
|
|
|
- if (ret) {
|
|
|
+ if (ret < 0) {
|
|
|
dev_err(dev, "idr_alloc failed: %d\n", ret);
|
|
|
dma_free_coherent(dev->parent, size, va, dma);
|
|
|
return ret;
|