]> Pileus Git - ~andy/linux/blobdiff - arch/x86/lib/usercopy.c
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[~andy/linux] / arch / x86 / lib / usercopy.c
index 677b1ed184c9004f8a51b5432f4e29ecb2c24f81..4f74d94c8d9727f013b3ebed6fe5da6e3975ac93 100644 (file)
@@ -22,7 +22,7 @@ copy_from_user_nmi(void *to, const void __user *from, unsigned long n)
        void *map;
        int ret;
 
-       if (__range_not_ok(from, n, TASK_SIZE) == 0)
+       if (__range_not_ok(from, n, TASK_SIZE))
                return len;
 
        do {