diff --git a/kernel-patches/for-mainline/fix-getcwd.diff b/kernel-patches/for-mainline/fix-getcwd.diff index f3f59b4ca..dae09bc24 100644 --- a/kernel-patches/for-mainline/fix-getcwd.diff +++ b/kernel-patches/for-mainline/fix-getcwd.diff @@ -18,7 +18,7 @@ Signed-off-by: Andreas Gruenbacher read_unlock(¤t->fs->lock); cwd = __d_path(pwd, pwdmnt, root, rootmnt, page, PAGE_SIZE, 1); -- cwd = __connect_d_path(res, page); +- cwd = __connect_d_path(cwd, page); error = PTR_ERR(cwd); if (IS_ERR(cwd)) goto out; diff --git a/kernel-patches/for-mainline/unambiguous-__d_path.diff b/kernel-patches/for-mainline/unambiguous-__d_path.diff index 6210e55f5..8f8125a6a 100644 --- a/kernel-patches/for-mainline/unambiguous-__d_path.diff +++ b/kernel-patches/for-mainline/unambiguous-__d_path.diff @@ -252,7 +252,7 @@ Signed-off-by: Andreas Gruenbacher - } else - spin_unlock(&dcache_lock); + cwd = __d_path(pwd, pwdmnt, root, rootmnt, page, PAGE_SIZE, 1); -+ cwd = __connect_d_path(res, page); ++ cwd = __connect_d_path(cwd, page); + error = PTR_ERR(cwd); + if (IS_ERR(cwd)) + goto out;