From: Daniel De Graaf Date: Mon, 28 Nov 2011 16:49:11 +0000 (-0500) Subject: xen/gntalloc: fix reference counts on multi-page mappings X-Git-Tag: v3.3-rc1~129^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=243082e0d59f169a1fa502f51ee5a820889fae93;p=pandora-kernel.git xen/gntalloc: fix reference counts on multi-page mappings When a multi-page mapping of gntalloc is created, the reference counts of all pages in the vma are incremented. However, the vma open/close operations only adjusted the reference count of the first page in the mapping, leaking the other pages. Store a struct in the vm_private_data to track the original page count to properly free the pages when the last reference to the vma is closed. Reported-by: Anil Madhavapeddy Signed-off-by: Daniel De Graaf Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed