Browse Source

drm: Remove drm_vblank_cleanup from drm_vblank_init error path.

drm_vblank_cleanup() would operate on non-existent dev->vblank
data structure, as failure to allocate that data structure is
what triggers the error path in the first place.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Mario Kleiner 11 years ago
parent
commit
79a093aea4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/drm_irq.c

+ 1 - 1
drivers/gpu/drm/drm_irq.c

@@ -303,7 +303,7 @@ int drm_vblank_init(struct drm_device *dev, int num_crtcs)
 	return 0;
 
 err:
-	drm_vblank_cleanup(dev);
+	dev->num_crtcs = 0;
 	return ret;
 }
 EXPORT_SYMBOL(drm_vblank_init);