X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fcompat.c;h=42d56544460f21b353cc279aa8aa52301eded59b;hb=cb5629b10d64a8006622ce3a52bc887d91057d69;hp=d52e2ec1deb59d521d3a8c89c230a68d41c33d3e;hpb=7a1fcd5f5130f173b5e824135735ec58f245563e;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; }