Skip to content
Commit cd81a917 authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Paul Moore
Browse files

mm: introduce get_task_exe_file



For more convenient access if one has a pointer to the task.

As a minor nit take advantage of the fact that only task lock + rcu are
needed to safely grab ->exe_file. This saves mm refcount dance.

Use the helper in proc_exe_link.

Signed-off-by: default avatarMateusz Guzik <mguzik@redhat.com>
Acked-by: default avatarKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Cc: <stable@vger.kernel.org> # 4.3.x
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 43761473
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