]> 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)
commit52c04ec6c93b24211309705fcba5ab62dd6279da
tree89e619b2d2e172d1d78e9a7af4f3e2db0a953527
parente3e06ab0fbe022ba070ad2be8bb0e411aef94482
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: b45d2c1579d1 ("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