iov_iter_fault_in_readable() should do nothing in xarray case
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Jun 2021 18:48:21 +0000 (14:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:55:39 +0000 (16:55 +0200)
commit7b0393e6f6c86d5f1b01befebd2bf445d0f4ff94
treec0b59d191729755ec8f7c2500e6973e5d89740c1
parentb6df9e43d52deed1e3bb9a58b6ab3329049a945e
iov_iter_fault_in_readable() should do nothing in xarray case

commit 0e8f0d67401589a141950856902c7d0ec8d9c985 upstream.

... and actually should just check it's given an iovec-backed iterator
in the first place.

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/iov_iter.c