summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralanh <alanh>2001-09-19 13:48:11 +0000
committeralanh <alanh>2001-09-19 13:48:11 +0000
commitef9c4da1d27c60ae484f743ca5b6f689a02d0a38 (patch)
treee6a7bd39e3ab32d5f5aa4654ddee913e9a9ef193
parent9bd466583dff8db0bed5c4d792aba032c514f89f (diff)
indirect buffer fix.
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
index 42bd3661e..ba3280498 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/r128_state.c
@@ -1533,9 +1533,9 @@ int r128_cce_indirect( DRM_OS_IOCTL )
buf = dma->buflist[indirect.idx];
buf_priv = buf->dev_private;
- if ( buf->pid != current->pid ) {
+ if ( buf->pid != DRM_OS_CURRENTPID ) {
DRM_ERROR( "process %d using buffer owned by %d\n",
- current->pid, buf->pid );
+ DRM_OS_CURRENTPID, buf->pid );
return -EINVAL;
}
if ( buf->pending ) {