]> git.baikalelectronics.ru Git - kernel.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)
commitb4a53f27d8a36b64ba1c51729dc7e10eadf454f5
tree89e619b2d2e172d1d78e9a7af4f3e2db0a953527
parenta6573b4b5d4271707ff645a723b9b1f7f835f72b
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: bc27b5935a5d ("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