Commit dd661e5f authored by Francisco Jerez's avatar Francisco Jerez Committed by Ben Skeggs

drm/nouveau: Return error from nouveau_gpuobj_new if we're out of RAMIN.

Reported-by: default avatarTomas Miljenovic <tomasmiljenovic@gmail.com>
Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent b54262f3
...@@ -129,7 +129,7 @@ nouveau_gpuobj_new(struct drm_device *dev, struct nouveau_channel *chan, ...@@ -129,7 +129,7 @@ nouveau_gpuobj_new(struct drm_device *dev, struct nouveau_channel *chan,
if (ramin == NULL) { if (ramin == NULL) {
spin_unlock(&dev_priv->ramin_lock); spin_unlock(&dev_priv->ramin_lock);
nouveau_gpuobj_ref(NULL, &gpuobj); nouveau_gpuobj_ref(NULL, &gpuobj);
return ret; return -ENOMEM;
} }
ramin = drm_mm_get_block_atomic(ramin, size, align); ramin = drm_mm_get_block_atomic(ramin, size, align);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment