diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 8362dc154af4..506f8efeb519 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -1771,6 +1771,9 @@ static int i915_pipe_crc_open(struct inode *inode, struct file *filep) | |||
1771 | struct drm_i915_private *dev_priv = info->dev->dev_private; | 1771 | struct drm_i915_private *dev_priv = info->dev->dev_private; |
1772 | struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[info->pipe]; | 1772 | struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[info->pipe]; |
1773 | 1773 | ||
1774 | if (info->pipe >= INTEL_INFO(info->dev)->num_pipes) | ||
1775 | return -ENODEV; | ||
1776 | |||
1774 | spin_lock_irq(&pipe_crc->lock); | 1777 | spin_lock_irq(&pipe_crc->lock); |
1775 | 1778 | ||
1776 | if (pipe_crc->opened) { | 1779 | if (pipe_crc->opened) { |