commit | a67baeb77375199bbd842fa308cb565164dd1f19 | [log] [tgz] |
---|---|---|
author | David Vrabel <david.vrabel@citrix.com> | Wed Oct 24 12:39:02 2012 +0100 |
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | Tue Oct 30 09:27:32 2012 -0400 |
tree | 7d0741784e172ba665dbef4dd7418150fdb2ab2f | |
parent | b6514633bdc6a511f7c44b3ecb86d6071374239d [diff] |
xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF 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 <david.vrabel@citrix.com> Cc: stable@vger.kernel.org Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>