xen/xenbus: Don't leak memory when unmapping the ring on HVM backend
authorJulien Grall <julien.grall@citrix.com>
Mon, 10 Aug 2015 18:10:38 +0000 (19:10 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 11 Aug 2015 10:05:58 +0000 (11:05 +0100)
commitc22fe519e7e2b94ad173e0ea3b89c1a7d8be8d00
treee93375e27bd4cc47c02b1ee2e8961a990ba48f8f
parentad6cd7bafcd2c812ba4200d5938e07304f1e2fcd
xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

The commit ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d "xenbus_client:
Extend interface to support multi-page ring" removes the call to
free_xenballooned_pages() in xenbus_unmap_ring_vfree_hvm(), leaking a
page for every shared ring.

Only with backends running in HVM domains were affected.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xenbus/xenbus_client.c