mm/rmap: fix old bug: munlocking THP missed other mlocks
[linux-block.git] / fs / coredump.c
index c3d8fc14b993047bfb9a628e893537eb926e0e85..07afb5ddb1c4e747f39b3f92a15e23d951f2fa17 100644 (file)
@@ -755,8 +755,8 @@ void do_coredump(const kernel_siginfo_t *siginfo)
                        task_lock(&init_task);
                        get_fs_root(init_task.fs, &root);
                        task_unlock(&init_task);
-                       cprm.file = file_open_root(root.dentry, root.mnt,
-                               cn.corename, open_flags, 0600);
+                       cprm.file = file_open_root(&root, cn.corename,
+                                                  open_flags, 0600);
                        path_put(&root);
                } else {
                        cprm.file = filp_open(cn.corename, open_flags, 0600);