[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Assert non-zero refcount on entry to put_page().



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237304425 0
# Node ID 9fc957e63f8dc0fdb2400eb424da4c1122b7ac65
# Parent  92a6cc5eae2e786eff352488377ad9b4282cefd2
x86: Assert non-zero refcount on entry to put_page().
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 92a6cc5eae2e -r 9fc957e63f8d xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Tue Mar 17 15:29:57 2009 +0000
+++ b/xen/arch/x86/mm.c Tue Mar 17 15:40:25 2009 +0000
@@ -1929,6 +1929,7 @@ void put_page(struct page_info *page)
     unsigned long nx, x, y = page->count_info;
 
     do {
+        ASSERT((y & PGC_count_mask) != 0);
         x  = y;
         nx = x - 1;
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.