aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/compat.c')
-rw-r--r--kernel/compat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/compat.c b/kernel/compat.c
index e40b0430b562..633394f442f8 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -157,7 +157,7 @@ static int __compat_put_timespec(const struct timespec *ts, struct compat_timesp
157int compat_get_timeval(struct timeval *tv, const void __user *utv) 157int compat_get_timeval(struct timeval *tv, const void __user *utv)
158{ 158{
159 if (COMPAT_USE_64BIT_TIME) 159 if (COMPAT_USE_64BIT_TIME)
160 return copy_from_user(tv, utv, sizeof *tv) ? -EFAULT : 0; 160 return copy_from_user(tv, utv, sizeof(*tv)) ? -EFAULT : 0;
161 else 161 else
162 return __compat_get_timeval(tv, utv); 162 return __compat_get_timeval(tv, utv);
163} 163}
@@ -166,7 +166,7 @@ EXPORT_SYMBOL_GPL(compat_get_timeval);
166int compat_put_timeval(const struct timeval *tv, void __user *utv) 166int compat_put_timeval(const struct timeval *tv, void __user *utv)
167{ 167{
168 if (COMPAT_USE_64BIT_TIME) 168 if (COMPAT_USE_64BIT_TIME)
169 return copy_to_user(utv, tv, sizeof *tv) ? -EFAULT : 0; 169 return copy_to_user(utv, tv, sizeof(*tv)) ? -EFAULT : 0;
170 else 170 else
171 return __compat_put_timeval(tv, utv); 171 return __compat_put_timeval(tv, utv);
172} 172}
@@ -175,7 +175,7 @@ EXPORT_SYMBOL_GPL(compat_put_timeval);
175int compat_get_timespec(struct timespec *ts, const void __user *uts) 175int compat_get_timespec(struct timespec *ts, const void __user *uts)
176{ 176{
177 if (COMPAT_USE_64BIT_TIME) 177 if (COMPAT_USE_64BIT_TIME)
178 return copy_from_user(ts, uts, sizeof *ts) ? -EFAULT : 0; 178 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0;
179 else 179 else
180 return __compat_get_timespec(ts, uts); 180 return __compat_get_timespec(ts, uts);
181} 181}
@@ -184,7 +184,7 @@ EXPORT_SYMBOL_GPL(compat_get_timespec);
184int compat_put_timespec(const struct timespec *ts, void __user *uts) 184int compat_put_timespec(const struct timespec *ts, void __user *uts)
185{ 185{
186 if (COMPAT_USE_64BIT_TIME) 186 if (COMPAT_USE_64BIT_TIME)
187 return copy_to_user(uts, ts, sizeof *ts) ? -EFAULT : 0; 187 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0;
188 else 188 else
189 return __compat_put_timespec(ts, uts); 189 return __compat_put_timespec(ts, uts);
190} 190}