Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2436
b: refs/heads/master
c: 589777e
h: refs/heads/master
v: v3
  • Loading branch information
Zaur Kambarov authored and Linus Torvalds committed Jun 22, 2005
1 parent 19b4867 commit 7a70e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a845099b20e81fb678521f034bbdcd69208da4e
refs/heads/master: 589777eab7360894b7ca1c4ba9d252e03b51225b
2 changes: 1 addition & 1 deletion trunk/lib/idr.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
* Add a new layer to the top of the tree if the requested
* id is larger than the currently allocated space.
*/
while ((layers < MAX_LEVEL) && (id >= (1 << (layers*IDR_BITS)))) {
while ((layers < (MAX_LEVEL - 1)) && (id >= (1 << (layers*IDR_BITS)))) {
layers++;
if (!p->count)
continue;
Expand Down

0 comments on commit 7a70e09

Please sign in to comment.