summaryrefslogtreecommitdiff
path: root/nouveau/nouveau_channel.c
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2010-01-12 15:38:29 +0100
committerMaarten Maathuis <madman2003@gmail.com>2010-01-15 23:02:48 +0100
commit3d3d87f3a70089f645facb2bff5a0b93ec0a0efd (patch)
tree51cf92e154d2693bc08b65d9e9fcf6b45561c7cc /nouveau/nouveau_channel.c
parenta03dcc21040775e660afcfc3dc37a324d2dd2ed3 (diff)
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/nouveau_channel.c')
-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)
if (!chan || !*chan)
return;
nvchan = nouveau_channel(*chan);
+ (*chan)->flush_notify = NULL;
*chan = NULL;
nvdev = nouveau_device(nvchan->base.device);