Commit 0181f4bf authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: reject attempts to submit to dead channels

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 4c9ee1bf
......@@ -702,6 +702,8 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data,
if (!chan)
return nouveau_abi16_put(abi16, -ENOENT);
if (unlikely(atomic_read(&chan->killed)))
return nouveau_abi16_put(abi16, -ENODEV);
req->vram_available = drm->gem.vram_available;
req->gart_available = drm->gem.gart_available;
......
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