Skip to content

Commit

Permalink
drm/i915: Don't let an oops get triggered from irq_emit without dma i…
Browse files Browse the repository at this point in the history
…nit.

Userland is broken if it's trying this, but we also shouldn't allow oopses.

Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Eric Anholt committed Apr 17, 2009
1 parent f544847 commit 07f4f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ int i915_irq_emit(struct drm_device *dev, void *data,
drm_i915_irq_emit_t *emit = data;
int result;

if (!dev_priv) {
if (!dev_priv || !dev_priv->ring.virtual_start) {
DRM_ERROR("called with no initialization\n");
return -EINVAL;
}
Expand Down

0 comments on commit 07f4f8b

Please sign in to comment.