]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen-netfront: release grant references used for the shared rings
authorroyger <royger@FreeBSD.org>
Thu, 2 Jun 2016 11:19:16 +0000 (11:19 +0000)
committerroyger <royger@FreeBSD.org>
Thu, 2 Jun 2016 11:19:16 +0000 (11:19 +0000)
commiteca8dd90a23856a30f71edee4058a0f17a95cc4a
treef21d6155f6c8599703f765188613e36bafaf787a
parent674010a40559b26747da6cbfd3aa376056a52e3e
xen-netfront: release grant references used for the shared rings

Just calling gnttab_end_foreign_access_ref doesn't free the references,
instead call gnttab_end_foreign_access with a NULL page argument in order to
have the grant references freed. The code that maps the ring
(xenbus_map_ring) already uses gnttab_grant_foreign_access which takes care
of allocating a grant reference.

Reviewed by: Wei Liu <wei.liu2@citrix.com>
Sponsored by: Citrix Systems R&D
Differential revision: https://reviews.freebsd.org/D6608
sys/dev/xen/netfront/netfront.c