aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/xenbus
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-19 15:50:29 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-19 15:50:29 +0000
commit3b5ef8c46df0e16ea5b790c32ae162414d2f5d88 (patch)
treec89861d15468e532fd4d38cc23e31a96d3fc202a /extras/mini-os/xenbus
parentfcd667b266d0294f0f7e73f3246c8f669e20fad3 (diff)
downloadxen-3b5ef8c46df0e16ea5b790c32ae162414d2f5d88.tar.gz
xen-3b5ef8c46df0e16ea5b790c32ae162414d2f5d88.tar.bz2
xen-3b5ef8c46df0e16ea5b790c32ae162414d2f5d88.zip
minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os/xenbus')
-rw-r--r--extras/mini-os/xenbus/xenbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/mini-os/xenbus/xenbus.c b/extras/mini-os/xenbus/xenbus.c
index f2428c12fa..f483211947 100644
--- a/extras/mini-os/xenbus/xenbus.c
+++ b/extras/mini-os/xenbus/xenbus.c
@@ -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);