Skip to content
Commit 5b51694a authored by Michel Dänzer's avatar Michel Dänzer Committed by airlied
Browse files

drm: Make handling of dev_priv->vblank_pipe more robust.



Initialize it to default value if it hasn't been set by the X server yet.

In i915_vblank_pipe_set(), only update dev_priv->vblank_pipe and call
i915_enable_interrupt() if the argument passed from userspace is valid to avoid
corrupting dev_priv->vblank_pipe on invalid arguments.

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 541f29aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment