projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c9ee1b
)
drm/nouveau: reject attempts to submit to dead channels
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 23 Jan 2020 03:47:12 +0000
(13:47 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 29 Jan 2020 05:49:47 +0000
(15:49 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_gem.c
b/drivers/gpu/drm/nouveau/nouveau_gem.c
index
05ec8ed
..
8f97534
100644
(file)
--- 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;