fix 'direction' argument of iov_iter_{init,bvec}()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Sep 2022 23:09:39 +0000 (19:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:03 +0000 (11:28 +0100)
commitff85ec97d14c3532b1bd134adb5d0047e5653dd1
tree41489943ca4e812f3276b2f802d4c58703507785
parent02f719be2f2b10b5a952a36dc230ea40fa37afb9
fix 'direction' argument of iov_iter_{init,bvec}()

[ Upstream commit e3bf3df824675ea9cadc3cd2c75d08ee83a6ae26 ]

READ means "data destination", WRITE - "data source".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd59da8 ("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vhost/vhost.c
drivers/vhost/vringh.c