new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user