drm: Remove two leaks of vblank reference count in error paths.

If the failing paths were hit, the vblank IRQ would never get turned off
again.

Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Tento commit je obsažen v:
Eric Anholt
2008-10-17 11:03:53 -07:00
odevzdal Dave Airlie
rodič 786225eb2f
revize 35ad68c181
2 změnil soubory, kde provedl 5 přidání a 1 odebrání

Zobrazit soubor

@@ -771,6 +771,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
vbl_swap->plane == plane &&
vbl_swap->sequence == swap->sequence) {
spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
drm_vblank_put(dev, pipe);
DRM_DEBUG("Already scheduled\n");
return 0;
}