Commit 2ecf2023 authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Fix fle to be checked for being task_fle

We've received tmp, which is not expected one, so check for it.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Acked-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
parent 2e8970be
...@@ -907,8 +907,8 @@ again: ...@@ -907,8 +907,8 @@ again:
if (tmp != fle) { if (tmp != fle) {
pr_info("Further fle=%p, pid=%d\n", tmp, fle->pid); pr_info("Further fle=%p, pid=%d\n", tmp, fle->pid);
if (!task_fle(current, fle)) { if (!task_fle(current, tmp)) {
pr_err("Unexpected fle %p, pid=%d\n", fle, current->pid->ns[0].virt); pr_err("Unexpected fle %p, pid=%d\n", tmp, current->pid->ns[0].virt);
return -1; return -1;
} }
if (keep_fd_for_future(tmp, fd)) if (keep_fd_for_future(tmp, fd))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment