2.6.12 planetlab config file
[linux-2.6.git] / ipc / shm.c
index d7bb539..fa14c36 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -195,7 +195,7 @@ static int newseg (key_t key, int shmflg, size_t size)
                return -ENOMEM;
 
        shp->shm_perm.key = key;
-       shp->shm_perm.xid = current->xid;
+       shp->shm_perm.xid = vx_current_xid();
        shp->shm_flags = (shmflg & S_IRWXUGO);
        shp->mlock_user = NULL;