diff options
author | Jeremy Allison <jra@samba.org> | 2005-06-22 20:35:06 -0400 |
---|---|---|
committer | Steve French <sfrench@hera.kernel.org> | 2005-06-22 20:35:06 -0400 |
commit | 1bdf7a78c2b21fb94dfe7994dbe89310b18479d2 (patch) | |
tree | 7741cfd476f9c622a10c198da421fdb3e38708b9 /lib/idr.c | |
parent | ac67055ef2378ea95c34b593ddf9d0a0737a240a (diff) | |
parent | a4936044001694f033fe4ea94d6034d51a6b465c (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'lib/idr.c')
-rw-r--r-- | lib/idr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ build_up: | |||
175 | * Add a new layer to the top of the tree if the requested | 175 | * Add a new layer to the top of the tree if the requested |
176 | * id is larger than the currently allocated space. | 176 | * id is larger than the currently allocated space. |
177 | */ | 177 | */ |
178 | while ((layers < MAX_LEVEL) && (id >= (1 << (layers*IDR_BITS)))) { | 178 | while ((layers < (MAX_LEVEL - 1)) && (id >= (1 << (layers*IDR_BITS)))) { |
179 | layers++; | 179 | layers++; |
180 | if (!p->count) | 180 | if (!p->count) |
181 | continue; | 181 | continue; |