diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-01-23 13:47:12 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-01-29 15:49:47 +1000 |
commit | 0181f4bfbdcdfdf8474946bf14fd644727fb8363 (patch) | |
tree | ef66991eba82aba836edfe63e23917d9eb9d4eeb /drivers/gpu/drm/nouveau | |
parent | 4c9ee1bfca820b93f107957f5322845c862ea368 (diff) | |
download | linux-0181f4bfbdcdfdf8474946bf14fd644727fb8363.tar.gz linux-0181f4bfbdcdfdf8474946bf14fd644727fb8363.tar.bz2 linux-0181f4bfbdcdfdf8474946bf14fd644727fb8363.zip |
drm/nouveau: reject attempts to submit to dead channels
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 05ec8edd6a8b..8f97534e996c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -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; |