commit | 4a3d270862f6dbc52ca3e16ba66fdb24667b2aa2 | [log] [tgz] |
---|---|---|
author | Michel Dänzer <michel@tungstengraphics.com> | Thu Aug 31 18:30:55 2006 +0200 |
committer | Michel Dänzer <michel@tungstengraphics.com> | Fri Sep 29 12:55:08 2006 +0200 |
tree | cc3345bc3426681903508f18145d4d4f658ab931 | |
parent | 1f3493f65ba0959e401191c648f57501216eeb0a [diff] |
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. (cherry picked from 87c57cba1a70221fc570b253bf3b24682ef6b894 commit)