diff options
author | Owain G. Ainsworth <oga@openbsd.org> | 2009-01-13 18:42:44 +0000 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-01-15 09:46:47 +0800 |
commit | ff67517db91a572a640e7a0ba247b8b71bfa2335 (patch) | |
tree | ec086f0c77598225afd8e39fc1dc12195791416e /src | |
parent | e84f21db824b2e9e7fe660927ecfbbf04b068f7a (diff) |
Fix ioctl type.
I915_EMIT_IRQ is a read/write ioctl, not a write only. Found by OpenBSd's
kernel code which checks these things a long more strongly than Linux.
(cherry picked from commit 9f306193c4b128ec72c5b4db16d07302cee50ab5)
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index 7dff714f..5ee53bb1 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -205,7 +205,7 @@ I830Sync(ScrnInfoPtr pScrn) * register reads for idle. */ emit.irq_seq = &wait.irq_seq; - ret = drmCommandWrite(pI830->drmSubFD, DRM_I830_IRQ_EMIT, &emit, + ret = drmCommandWriteRead(pI830->drmSubFD, DRM_I830_IRQ_EMIT, &emit, sizeof(emit)); if (ret != 0) FatalError("Failure to emit IRQ: %s\n", strerror(-ret)); |