[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@jp.fujitsu.com>
This commit is contained in:
Alex Williamson committed 2007-05-11 13:09:12 -06:00
1 parent 4327b1944f
commit 625f73d3df
1 file changed
+4 -1
+4 -1
View File
@@ -157,9 +157,12 @@ int allocate_rid_range(struct domain *d, unsigned long ridbits)
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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.