OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b718c
)
drm_vblank_get: don't WARN_ON in case vblanks are not initialized
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 30 Mar 2015 10:50:50 +0000
(12:50 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 2 Jun 2015 08:17:21 +0000
(10:17 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_irq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_irq.c
b/drivers/gpu/drm/drm_irq.c
index
1967e7f
..
dd3fd12
100644
(file)
--- a/
drivers/gpu/drm/drm_irq.c
+++ b/
drivers/gpu/drm/drm_irq.c
@@
-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;