summaryrefslogtreecommitdiff
path: root/arch/arm64/mm/gcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/mm/gcs.c')
-rw-r--r--arch/arm64/mm/gcs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm64/mm/gcs.c b/arch/arm64/mm/gcs.c
index 5c46ec527b1c..6e93f78de79b 100644
--- a/arch/arm64/mm/gcs.c
+++ b/arch/arm64/mm/gcs.c
@@ -157,12 +157,6 @@ void gcs_free(struct task_struct *task)
if (!system_supports_gcs())
return;
- /*
- * When fork() with CLONE_VM fails, the child (tsk) already
- * has a GCS allocated, and exit_thread() calls this function
- * to free it. In this case the parent (current) and the
- * child share the same mm struct.
- */
if (!task->mm || task->mm != current->mm)
return;