ia64/xen-unstable

changeset 2316:a09ad598bd40

bitkeeper revision 1.1159.46.1 (4125f87eJIsxVuchHslHHEkNUjqjRA)

Fix page refcnt in net backend.
author kaf24@scramble.cl.cam.ac.uk
date Fri Aug 20 13:11:26 2004 +0000 (2004-08-20)
parents 76d1b88c0c2e
children 0d0b3847e406
files linux-2.6.7-xen-sparse/drivers/xen/netback/netback.c
line diff
     1.1 --- a/linux-2.6.7-xen-sparse/drivers/xen/netback/netback.c	Thu Aug 19 22:46:12 2004 +0000
     1.2 +++ b/linux-2.6.7-xen-sparse/drivers/xen/netback/netback.c	Fri Aug 20 13:11:26 2004 +0000
     1.3 @@ -748,6 +748,7 @@ static int __init netback_init(void)
     1.4      for ( i = 0; i < MAX_PENDING_REQS; i++ )
     1.5      {
     1.6          page = virt_to_page(MMAP_VADDR(i));
     1.7 +        set_page_count(page, 1);
     1.8          SetPageForeign(page);
     1.9          PageForeignDestructor(page) = netif_page_release;
    1.10      }