Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16e3247d authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

drm_vblank_get: don't WARN_ON in case vblanks are not initialized

parent 06b718c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1056,6 +1056,9 @@ int drm_vblank_get(struct drm_device *dev, int crtc)
	unsigned long irqflags;
	int ret = 0;

	if (!dev->num_crtcs)
		return -EINVAL;

	if (WARN_ON(crtc >= dev->num_crtcs))
		return -EINVAL;