From: Daniel De Graaf Date: Wed, 9 Feb 2011 21:11:32 +0000 (-0500) Subject: xen-gntdev: Avoid double-mapping memory X-Git-Tag: v2.6.39-rc1~439^3~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12996fc38a2d760f3b30c9ceae26d0eeb92fe52d;p=pandora-kernel.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed