diff options
Diffstat (limited to 'kernel/compat.c')
-rw-r--r-- | kernel/compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index 6d21894806b4..92d8c98c0f57 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -34,6 +34,7 @@ int compat_get_timex(struct timex *txc, const struct compat_timex __user *utp) | |||
34 | { | 34 | { |
35 | struct compat_timex tx32; | 35 | struct compat_timex tx32; |
36 | 36 | ||
37 | memset(txc, 0, sizeof(struct timex)); | ||
37 | if (copy_from_user(&tx32, utp, sizeof(struct compat_timex))) | 38 | if (copy_from_user(&tx32, utp, sizeof(struct compat_timex))) |
38 | return -EFAULT; | 39 | return -EFAULT; |
39 | 40 | ||