|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] minios: Fix xenbus-id allocation loop.
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1171900229 0
# Node ID ee6e484403a98b86273e60024090d3e566018eda
# Parent b90180c2a057603ef5b2dfd1edd8f1f9a24d9a33
minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
---
extras/mini-os/xenbus/xenbus.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r b90180c2a057 -r ee6e484403a9 extras/mini-os/xenbus/xenbus.c
--- a/extras/mini-os/xenbus/xenbus.c Mon Feb 19 15:46:01 2007 +0000
+++ b/extras/mini-os/xenbus/xenbus.c Mon Feb 19 15:50:29 2007 +0000
@@ -210,7 +210,7 @@ static int allocate_xenbus_id(void)
}
nr_live_reqs++;
req_info[o_probe].in_use = 1;
- probe = o_probe + 1;
+ probe = (o_probe + 1) % NR_REQS;
spin_unlock(&req_lock);
init_waitqueue_head(&req_info[o_probe].waitq);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] minios: Fix xenbus-id allocation loop.,
Xen patchbot-unstable <=
|
|
|
|
|