diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-09-19 13:48:11 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-09-19 13:48:11 +0000 |
commit | fa696702b88a66a86fe79cd44ca2e1f1e412bacd (patch) | |
tree | 6b17a9be819780252906e8d277683adf28dafa4c | |
parent | c3fc479610c534ff479e0b06d5ae50d195db9124 (diff) |
indirect buffer fix.
-rw-r--r-- | linux/r128_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/r128_state.c b/linux/r128_state.c index 42bd3661..ba328049 100644 --- a/linux/r128_state.c +++ b/linux/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 ) { |