ia64/xen-unstable

changeset 6290:6c8c3df37bfe

Correctly unmap ring page if using grant tables.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Aug 19 15:21:12 2005 +0000 (2005-08-19)
parents 188c782fa9bb
children 87dec3b9c546
files linux-2.6-xen-sparse/drivers/xen/blkback/interface.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c	Fri Aug 19 13:05:31 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c	Fri Aug 19 15:21:12 2005 +0000
     1.3 @@ -199,8 +199,10 @@ void free_blkif(blkif_t *blkif)
     1.4      if (blkif->evtchn)
     1.5          unbind_evtchn_from_irqhandler(blkif->evtchn, blkif);
     1.6  
     1.7 -    if (blkif->blk_ring.sring)
     1.8 -	    vfree(blkif->blk_ring.sring);
     1.9 +    if (blkif->blk_ring.sring) {
    1.10 +	unmap_frontend_page(blkif);
    1.11 +	vfree(blkif->blk_ring.sring);
    1.12 +    }
    1.13  
    1.14      pblkif = &blkif_hash[BLKIF_HASH(blkif->domid)];
    1.15      while ( *pblkif != blkif )