mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
Merge branch 'linus' into x86/asm, to pick up recent fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
d4b80afbba
838 changed files with 7757 additions and 4556 deletions
|
@ -1556,18 +1556,13 @@ static const struct file_operations proc_pid_set_comm_operations = {
|
|||
static int proc_exe_link(struct dentry *dentry, struct path *exe_path)
|
||||
{
|
||||
struct task_struct *task;
|
||||
struct mm_struct *mm;
|
||||
struct file *exe_file;
|
||||
|
||||
task = get_proc_task(d_inode(dentry));
|
||||
if (!task)
|
||||
return -ENOENT;
|
||||
mm = get_task_mm(task);
|
||||
exe_file = get_task_exe_file(task);
|
||||
put_task_struct(task);
|
||||
if (!mm)
|
||||
return -ENOENT;
|
||||
exe_file = get_mm_exe_file(mm);
|
||||
mmput(mm);
|
||||
if (exe_file) {
|
||||
*exe_path = exe_file->f_path;
|
||||
path_get(&exe_file->f_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue