]> git.baikalelectronics.ru Git - kernel.git/commit
sample/mdev/mbochs: add mbochs_kunmap_dmabuf
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 25 Jun 2018 06:44:52 +0000 (08:44 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 26 Jun 2018 06:27:23 +0000 (00:27 -0600)
commit9b95ba978c9883a65e2c11500739485ecdce2d7e
tree392a39c4b933378a88435fd39691a64ead80ca7a
parent64513923bf1e9c1c5df48edc6dd279c8b6aa2260
sample/mdev/mbochs: add mbochs_kunmap_dmabuf

There is no default implementation for dma_buf_ops->unmap.
So add a function unmapping the page, otherwise we'll leak them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mbochs.c