From: David Vrabel Date: Wed, 24 Oct 2012 11:39:02 +0000 (+0100) Subject: xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF X-Git-Tag: v3.2.34~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1e9234c8d6aa740d2c8b6df0bca372663481d9;p=pandora-kernel.git xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF commit a67baeb77375199bbd842fa308cb565164dd1f19 upstream. map->kmap_ops allocated in gntdev_alloc_map() wasn't freed by gntdev_put_map(). Add a gntdev_free_map() helper function to free everything allocated by gntdev_alloc_map(). Signed-off-by: David Vrabel Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed