Ross Lagerwall cf2acf66ad xen/gntdev: Fix partial gntdev_mmap() cleanup
When cleaning up after a partially successful gntdev_mmap(), unmap the
successfully mapped grant pages otherwise Xen will kill the domain if
in debug mode (Attempt to implicitly unmap a granted PTE) or Linux will
kill the process and emit "BUG: Bad page map in process" if Xen is in
release mode.

This is only needed when use_ptemod is true because gntdev_put_map()
will unmap grant pages itself when use_ptemod is false.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2018-01-10 08:38:44 -05:00
..
2017-09-07 10:24:21 -07:00
2015-12-21 14:40:55 +00:00
2017-08-15 10:32:49 -04:00
2017-05-02 12:06:50 +02:00
2017-12-12 09:39:43 -05:00
2015-12-21 14:40:55 +00:00
2011-12-16 13:29:31 -05:00
2017-06-05 16:59:12 +02:00