diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 8047804d988534..22dacadaa771f6 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -243,6 +243,7 @@ static int proc_maps_open(struct inode *inode, struct file *file, priv->mm = proc_mem_open(inode, PTRACE_MODE_READ); if (IS_ERR(priv->mm)) { int err = PTR_ERR(priv->mm); + seq_release_private(inode, file); return err; }