aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/compat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipc/compat.c b/ipc/compat.c
index 3881d564c668..1fe95f6659dd 100644
--- a/ipc/compat.c
+++ b/ipc/compat.c
@@ -42,10 +42,10 @@ struct compat_msgbuf {
42 42
43struct compat_ipc_perm { 43struct compat_ipc_perm {
44 key_t key; 44 key_t key;
45 compat_uid_t uid; 45 __compat_uid_t uid;
46 compat_gid_t gid; 46 __compat_gid_t gid;
47 compat_uid_t cuid; 47 __compat_uid_t cuid;
48 compat_gid_t cgid; 48 __compat_gid_t cgid;
49 compat_mode_t mode; 49 compat_mode_t mode;
50 unsigned short seq; 50 unsigned short seq;
51}; 51};
@@ -174,8 +174,8 @@ static inline int __put_compat_ipc_perm(struct ipc64_perm *p,
174 struct compat_ipc_perm __user *up) 174 struct compat_ipc_perm __user *up)
175{ 175{
176 int err; 176 int err;
177 compat_uid_t u; 177 __compat_uid_t u;
178 compat_gid_t g; 178 __compat_gid_t g;
179 179
180 err = __put_user(p->key, &up->key); 180 err = __put_user(p->key, &up->key);
181 SET_UID(u, p->uid); 181 SET_UID(u, p->uid);