Commit ba1afc94 authored by Jeremy Linton's avatar Jeremy Linton Committed by Will Deacon
Browse files

uprobes: uprobe_warn should use passed task



uprobe_warn() is passed a task structure, yet its using current. For
the most part this shouldn't matter, but since a task structure is
provided, lets use it.

Fixes: 248d3a7b ("uprobes: Change uprobe_copy_process() to dup return_instances")
Signed-off-by: default avatarJeremy Linton <jeremy.linton@arm.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent cc66c711
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ struct xol_area {

static void uprobe_warn(struct task_struct *t, const char *msg)
{
	pr_warn("uprobe: %s:%d failed to %s\n", current->comm, current->pid, msg);
	pr_warn("uprobe: %s:%d failed to %s\n", t->comm, t->pid, msg);
}

/*