summaryrefslogtreecommitdiffstats
path: root/lib/iov_iter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iov_iter.c')
-rw-r--r--lib/iov_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index e68604ae3ced..97db876c6862 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,
413 size_t count) 413 size_t count)
414{ 414{
415 /* It will get better. Eventually... */ 415 /* It will get better. Eventually... */
416 if (segment_eq(get_fs(), KERNEL_DS)) { 416 if (uaccess_kernel()) {
417 direction |= ITER_KVEC; 417 direction |= ITER_KVEC;
418 i->type = direction; 418 i->type = direction;
419 i->kvec = (struct kvec *)iov; 419 i->kvec = (struct kvec *)iov;