diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index d25dc249535b..5762547ed8af 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c | |||
@@ -307,8 +307,7 @@ nouveau_channel_put_unlocked(struct nouveau_channel **pchan) | |||
307 | pfifo->reassign(dev, false); | 307 | pfifo->reassign(dev, false); |
308 | 308 | ||
309 | /* destroy the engine specific contexts */ | 309 | /* destroy the engine specific contexts */ |
310 | pfifo->destroy_context(chan); | 310 | for (i = NVOBJ_ENGINE_NR - 1; i >= 0; i--) { |
311 | for (i = 0; i < NVOBJ_ENGINE_NR; i++) { | ||
312 | if (chan->engctx[i]) | 311 | if (chan->engctx[i]) |
313 | dev_priv->eng[i]->context_del(chan, i); | 312 | dev_priv->eng[i]->context_del(chan, i); |
314 | /*XXX: clean this up later, order is important */ | 313 | /*XXX: clean this up later, order is important */ |