]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/lib/usercopy_64.c
Merge remote-tracking branch 'spi/fix/omap2-mcspi' into spi-omap2-mcspi
[karo-tx-linux.git] / arch / x86 / lib / usercopy_64.c
index 1f33b3d1fd68239c9bb07840d287bcee5d2d26b8..0a42327a59d71e5e2d607623ba209a69d37c6f8d 100644 (file)
@@ -82,7 +82,7 @@ copy_user_handle_tail(char *to, char *from, unsigned len)
        clac();
 
        /* If the destination is a kernel buffer, we always clear the end */
-       if ((unsigned long)to >= TASK_SIZE_MAX)
+       if (!__addr_ok(to))
                memset(to, 0, len);
        return len;
 }