]> asedeno.scripts.mit.edu Git - linux.git/commit
uio_hv_generic: fix subchannel ring mmap
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 16 Apr 2018 18:19:27 +0000 (11:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 10:43:48 +0000 (12:43 +0200)
commitce3d1536acabbdcdc3c945c3c078dd4ed1b8edfa
tree89e619b2d2e172d1d78e9a7af4f3e2db0a953527
parent135db384a2efde3718fd551e3968e97fcb400c84
uio_hv_generic: fix subchannel ring mmap

The fault method of handling subchannel ring, did not work correctly
(it only worked for the first page).

Since ring buffer is physically contiguous, using the vm helper
function is simpler and handles more cases.

Fixes: 37b96a4931db ("uio_hv_generic: support sub-channels")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c