Commit b3caff53 authored by Linus Torvalds's avatar Linus Torvalds

Fix up horribly wrong test in new copy-to-user()

implementation. The optimized versions only work
for large areas, make sure we don't use them for
anything else.
parent 808c016c
......@@ -12,7 +12,7 @@
static inline int movsl_is_ok(const void *a1, const void *a2, unsigned long n)
{
#ifdef CONFIG_X86_INTEL_USERCOPY
if (n >= 64 || (((const long)a1 ^ (const long)a2) & movsl_mask.mask))
if (n >= 64 && (((const long)a1 ^ (const long)a2) & movsl_mask.mask))
return 0;
#endif
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment