drm/nouveau: fix engine context destructor ordering
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5e120f6e4b
commit
f51ee65c75
|
@ -307,8 +307,7 @@ nouveau_channel_put_unlocked(struct nouveau_channel **pchan)
|
||||||
pfifo->reassign(dev, false);
|
pfifo->reassign(dev, false);
|
||||||
|
|
||||||
/* destroy the engine specific contexts */
|
/* destroy the engine specific contexts */
|
||||||
pfifo->destroy_context(chan);
|
for (i = NVOBJ_ENGINE_NR - 1; i >= 0; i--) {
|
||||||
for (i = 0; i < NVOBJ_ENGINE_NR; i++) {
|
|
||||||
if (chan->engctx[i])
|
if (chan->engctx[i])
|
||||||
dev_priv->eng[i]->context_del(chan, i);
|
dev_priv->eng[i]->context_del(chan, i);
|
||||||
/*XXX: clean this up later, order is important */
|
/*XXX: clean this up later, order is important */
|
||||||
|
|
Loading…
Reference in New Issue