]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86_64/i387.h
[PATCH] Centralise definitions of sector_t and blkcnt_t
[linux-2.6-omap-h63xx.git] / include / asm-x86_64 / i387.h
index 60c0f4853fdbd26e5a43461266614d269b440222..0217b74cc9fc0cd30456d40929e6196229680178 100644 (file)
@@ -137,8 +137,8 @@ static inline int save_i387_checking(struct i387_fxsave_struct __user *fx)
 #else
                     : [fx] "cdaSDb" (fx), "0" (0));
 #endif
-       if (unlikely(err))
-               __clear_user(fx, sizeof(struct i387_fxsave_struct));
+       if (unlikely(err) && __clear_user(fx, sizeof(struct i387_fxsave_struct)))
+               err = -EFAULT;
        /* No need to clear here because the caller clears USED_MATH */
        return err;
 }