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

[Xen-changelog] [xen-unstable] [IA64] Fix allocate_rid_range()



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1178910552 21600
# Node ID d6309cfd1fdd53c23fd8daf32afe67abb68b35d6
# Parent  7812598f65beaf4934cec9e01e0f538ada097da6
[IA64] Fix allocate_rid_range()

Though there is a free ridblock_owner[], allocate_rid_range()
cannot allocate it.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/regionreg.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 7812598f65be -r d6309cfd1fdd xen/arch/ia64/xen/regionreg.c
--- a/xen/arch/ia64/xen/regionreg.c     Fri May 11 13:07:04 2007 -0600
+++ b/xen/arch/ia64/xen/regionreg.c     Fri May 11 13:09:12 2007 -0600
@@ -157,9 +157,12 @@ int allocate_rid_range(struct domain *d,
        for (i = n_rid_blocks; i < MAX_RID_BLOCKS; i += n_rid_blocks) {
                if (ridblock_owner[i] == NULL) {
                        for (j = i; j < i + n_rid_blocks; ++j) {
-                               if (ridblock_owner[j])
+                               if (ridblock_owner[j]) {
+                                       ++j;
                                        break;
+                               }
                        }
+                       --j;
                        if (ridblock_owner[j] == NULL)
                                break;
                }

_______________________________________________
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®.