X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fcompat.c;h=42d56544460f21b353cc279aa8aa52301eded59b;hb=2d07d4d1bba3b141941682fa36cacbe12bbb143b;hp=d52e2ec1deb59d521d3a8c89c230a68d41c33d3e;hpb=c58bd34d00e04df9a0691732086cf8102b20d907;p=karo-tx-linux.git diff --git a/kernel/compat.c b/kernel/compat.c index d52e2ec1deb5..42d56544460f 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; }