X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fcompat.c;h=42d56544460f21b353cc279aa8aa52301eded59b;hb=af8cdcd828ad751fae8e6cbfe94eef9f2f23b14b;hp=d52e2ec1deb59d521d3a8c89c230a68d41c33d3e;hpb=ac8cc0fa5395fe2278e305a4cbed48e90d88d878;p=mv-sheeva.git diff --git a/kernel/compat.c b/kernel/compat.c index d52e2ec1deb..42d56544460 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -229,6 +230,7 @@ asmlinkage long compat_sys_times(struct compat_tms __user *tbuf) if (copy_to_user(tbuf, &tmp, sizeof(tmp))) return -EFAULT; } + force_successful_syscall_return(); return compat_jiffies_to_clock_t(jiffies); } @@ -894,8 +896,9 @@ asmlinkage long compat_sys_time(compat_time_t __user * tloc) if (tloc) { if (put_user(i,tloc)) - i = -EFAULT; + return -EFAULT; } + force_successful_syscall_return(); return i; }