commit | db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Mar 20 21:08:07 2017 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Mar 28 16:43:25 2017 -0400 |
tree | 77eda1d247853a2d414e0047c620b3c72bb11a1a | |
parent | aaa2e7ac80f679230faf28a8e12e8d68dbe977eb [diff] [blame] |
new helper: uaccess_kernel() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/lib/iov_iter.c b/lib/iov_iter.c index e68604a..97db876 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c
@@ -413,7 +413,7 @@ void iov_iter_init(struct iov_iter *i, int direction, size_t count) { /* It will get better. Eventually... */ - if (segment_eq(get_fs(), KERNEL_DS)) { + if (uaccess_kernel()) { direction |= ITER_KVEC; i->type = direction; i->kvec = (struct kvec *)iov;