drm: Make handling of dev_priv->vblank_pipe more robust.
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>
Tue, 24 Oct 2006 14:08:23 +0000 (00:08 +1000)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:30 +0000 (15:53 +1100)
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: Dave Airlie <airlied@linux.ie>

No differences found