diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-02-09 16:11:32 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-14 14:16:22 -0500 |
commit | 12996fc38a2d760f3b30c9ceae26d0eeb92fe52d (patch) | |
tree | 2f41f71bff2077360c435c134f1d22217f89958e /drivers/xen/Kconfig | |
parent | b57c18694ea1641b691fa05ed8af0ce339fa430b (diff) | |
download | linux-next-12996fc38a2d760f3b30c9ceae26d0eeb92fe52d.tar.gz |
xen-gntdev: Avoid double-mapping memory
If an already-mapped area of the device was mapped into userspace a
second time, a hypercall was incorrectly made to remap the memory
again. Avoid the hypercall on later mmap calls, and fail the mmap call
if a writable mapping is attempted on a read-only range.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/Kconfig')
0 files changed, 0 insertions, 0 deletions