We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d15869 commit 9357a8bCopy full SHA for 9357a8b
kernel/kernel_compat.h
@@ -50,15 +50,11 @@ __attribute__((hot))
50
static long ksu_copy_from_user_retry(void *to,
51
const void __user *from, unsigned long count)
52
{
53
- // _nofault does access_ok by itself already
54
long ret = ksu_copy_from_user_nofault(to, from, count);
55
if (likely(!ret))
56
return ret;
57
58
// we faulted! fallback to slow path
59
- if (unlikely(!ksu_access_ok(from, count)))
60
- return -EFAULT;
61
-
62
return copy_from_user(to, from, count);
63
}
64
0 commit comments