diff options
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index fa933f43b2c9..42ca0ea9af1b 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -130,6 +130,8 @@ int __section_nr(struct mem_section* ms) | |||
130 | break; | 130 | break; |
131 | } | 131 | } |
132 | 132 | ||
133 | VM_BUG_ON(root_nr == NR_SECTION_ROOTS); | ||
134 | |||
133 | return (root_nr * SECTIONS_PER_ROOT) + (ms - root); | 135 | return (root_nr * SECTIONS_PER_ROOT) + (ms - root); |
134 | } | 136 | } |
135 | 137 | ||