diff options
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 8c8e08f3a692..0d10defe951e 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1706,8 +1706,9 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, | |||
1706 | 1706 | ||
1707 | out_free_areas: | 1707 | out_free_areas: |
1708 | for (group = 0; group < ai->nr_groups; group++) | 1708 | for (group = 0; group < ai->nr_groups; group++) |
1709 | free_fn(areas[group], | 1709 | if (areas[group]) |
1710 | ai->groups[group].nr_units * ai->unit_size); | 1710 | free_fn(areas[group], |
1711 | ai->groups[group].nr_units * ai->unit_size); | ||
1711 | out_free: | 1712 | out_free: |
1712 | pcpu_free_alloc_info(ai); | 1713 | pcpu_free_alloc_info(ai); |
1713 | if (areas) | 1714 | if (areas) |