summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2023-04-18 23:53:49 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-04-18 23:53:49 +0200
commitf8f238ffe5e96a924a2ddbbaa872231fbf2c0d7b (patch)
tree6d1a2fc13d6d1e0737888bd3a7a8387097fbeb05 /kernel/fork.c
parentsync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changes (diff)
parentnilfs2: initialize unused bytes in segment summary blocks (diff)
downloadlinux-f8f238ffe5e96a924a2ddbbaa872231fbf2c0d7b.tar.xz
linux-f8f238ffe5e96a924a2ddbbaa872231fbf2c0d7b.zip
sync mm-stable with mm-hotfixes-stable to pick up depended-upon upstream changes
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 9051bc07b600..639228be0115 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1308,6 +1308,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p,
fail_pcpu:
while (i > 0)
percpu_counter_destroy(&mm->rss_stat[--i]);
+ destroy_context(mm);
fail_nocontext:
mm_free_pgd(mm);
fail_nopgd: