commit | 65ae0cc8a71c886856f8b8602ec7d34858258cd3 | [log] [tgz] |
---|---|---|
author | David Vrabel <david.vrabel@citrix.com> | Wed Oct 24 12:39:02 2012 +0100 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:16:43 2020 +0200 |
tree | 39c42aac78523942b8848ac54a3093fb4b0c1e4b | |
parent | 20f049e76bc8d68f2700bcebc7023e26cd7e834b [diff] |
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 <david.vrabel@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>