mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-11 09:32:45 -04:00
xfs: free up mp->m_free[0].count in error case
In xfs_init_percpu_counters(), memory for mp->m_free[0].count wasn't freed
in error case. Free it up in this patch.
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Fixes: 712bae9663 ("xfs: generalize the freespace and reserved blocks handling")
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
committed by
Carlos Maiolino
parent
f0447f80ae
commit
09dab6ce02
@@ -1149,7 +1149,7 @@ xfs_init_percpu_counters(
|
||||
return 0;
|
||||
|
||||
free_freecounters:
|
||||
while (--i > 0)
|
||||
while (--i >= 0)
|
||||
percpu_counter_destroy(&mp->m_free[i].count);
|
||||
percpu_counter_destroy(&mp->m_delalloc_rtextents);
|
||||
free_delalloc:
|
||||
|
||||
Reference in New Issue
Block a user