vfio-pci: Fix buffer overfill
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jan 2013 17:45:26 +0000 (10:45 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jan 2013 17:45:26 +0000 (10:45 -0700)
commitec1287e511320a2c9a02640b7ac02d5d79f56f08
tree80cb8ec5f4990a80b61a5b6707fd09d808ca64fd
parent406089d01562f1e2bf9f089fd7637009ebaad589
vfio-pci: Fix buffer overfill

A read from a range hidden from the user (ex. MSI-X vector table)
attempts to fill the user buffer up to the end of the excluded range
instead of up to the requested count.  Fix it.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: stable@vger.kernel.org
drivers/vfio/pci/vfio_pci_rdwr.c