diff options
author | Eric Auger <eric.auger@redhat.com> | 2018-04-11 15:30:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-11 16:52:34 +0200 |
commit | 7ced6c98c7ab7a1f6743931e28671b833af79b1e (patch) | |
tree | 83c1da2c76b6b049915063144677b9b77a9ba122 /drivers/mfd | |
parent | Merge branch 'Aquantia-atlantic-critical-fixes-04-2018' (diff) | |
download | linux-7ced6c98c7ab7a1f6743931e28671b833af79b1e.tar.xz linux-7ced6c98c7ab7a1f6743931e28671b833af79b1e.zip |
vhost: Fix vhost_copy_to_user()
vhost_copy_to_user is used to copy vring used elements to userspace.
We should use VHOST_ADDR_USED instead of VHOST_ADDR_DESC.
Fixes: f88949138058 ("vhost: introduce O(1) vq metadata cache")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions