X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ipc%2Fcompat_mq.c;h=a411f4ebd2c860591f1a42b8e50c50b9736bc999;hb=78a6196531f0fe10aae05a9bc4c2701df614ac3d;hp=1520df89c424a252c8cebbe137ce45d0a2367f67;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/ipc/compat_mq.c b/ipc/compat_mq.c index 1520df89c..a411f4ebd 100644 --- a/ipc/compat_mq.c +++ b/ipc/compat_mq.c @@ -77,7 +77,8 @@ asmlinkage long compat_sys_mq_open(const char __user *u_name, static struct timespec __user *compat_prepare_timeout( const struct compat_timespec __user *u_abs_timeout) { - struct timespec ts, __user *u_ts; + struct timespec ts; + struct timespec __user *u_ts; if (!u_abs_timeout) return 0; @@ -110,7 +111,7 @@ asmlinkage ssize_t compat_sys_mq_timedreceive(mqd_t mqdes, size_t msg_len, unsigned int __user *u_msg_prio, const struct compat_timespec __user *u_abs_timeout) { - struct timespec *u_ts; + struct timespec __user *u_ts; u_ts = compat_prepare_timeout(u_abs_timeout); if (IS_ERR(u_ts))