aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Slusarz2010-01-12 08:38:29 -0600
committerMaarten Maathuis2010-01-15 16:02:48 -0600
commit3d3d87f3a70089f645facb2bff5a0b93ec0a0efd (patch)
tree51cf92e154d2693bc08b65d9e9fcf6b45561c7cc /nouveau
parenta03dcc21040775e660afcfc3dc37a324d2dd2ed3 (diff)
downloadlibdrm-3d3d87f3a70089f645facb2bff5a0b93ec0a0efd.tar.gz
libdrm-3d3d87f3a70089f645facb2bff5a0b93ec0a0efd.tar.xz
libdrm-3d3d87f3a70089f645facb2bff5a0b93ec0a0efd.zip
nouveau: disable flush_notify on channel_free
We don't want do call flush_notify when we will FIRE the RING a couple of lines later, because grobj bound to this channel might be already freed.
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau_channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c
index 14cf4c6f..01d6681b 100644
--- a/nouveau/nouveau_channel.c
+++ b/nouveau/nouveau_channel.c
@@ -107,6 +107,7 @@ nouveau_channel_free(struct nouveau_channel **chan)
107 if (!chan || !*chan) 107 if (!chan || !*chan)
108 return; 108 return;
109 nvchan = nouveau_channel(*chan); 109 nvchan = nouveau_channel(*chan);
110 (*chan)->flush_notify = NULL;
110 *chan = NULL; 111 *chan = NULL;
111 nvdev = nouveau_device(nvchan->base.device); 112 nvdev = nouveau_device(nvchan->base.device);
112 113