summaryrefslogtreecommitdiff
path: root/lib/sw_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sw_sync.c')
-rw-r--r--lib/sw_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sw_sync.c b/lib/sw_sync.c
index 017a1394..04585261 100644
--- a/lib/sw_sync.c
+++ b/lib/sw_sync.c
@@ -208,7 +208,7 @@ static int __sync_fence_count_status(int fd, int status)
if (!fence_info)
return -ENOMEM;
- info.sync_fence_info = (uintptr_t)fence_info;
+ info.sync_fence_info = to_user_pointer(fence_info);
if (ioctl(fd, LOCAL_SYNC_IOC_FILE_INFO, &info)) {
count = -errno;
} else {