drm/nouveau: Fix lock unbalance on card take down.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 18 Oct 2010 01:01:34 +0000 (03:01 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 3 Dec 2010 05:06:40 +0000 (15:06 +1000)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index 1a4ba6c..af203cc 100644 (file)
@@ -714,7 +714,7 @@ static void nouveau_card_takedown(struct drm_device *dev)
 
        if (!engine->graph.accel_blocked) {
                nouveau_fence_fini(dev);
-               nouveau_channel_put(&dev_priv->channel);
+               nouveau_channel_put_unlocked(&dev_priv->channel);
        }
 
        if (!nouveau_noaccel) {