diff options
Diffstat (limited to 'kernel/pid.c')
| -rw-r--r-- | kernel/pid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 0005a8cc36cb..ed6adbba677b 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -131,7 +131,7 @@ next_map: */ scan_more: offset = find_next_zero_bit(map->page, BITS_PER_PAGE, offset); - if (offset == BITS_PER_PAGE) + if (offset >= BITS_PER_PAGE) goto next_map; if (test_and_set_bit(offset, map->page)) goto scan_more; |
