diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-26 15:47:03 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-26 15:47:03 -0400 |
| commit | 1e1b37273cf719545da50b76f214f983a710aaf4 (patch) | |
| tree | 033f6062325ef7aaeefe8559bb409ab7d2be3c76 /fs/proc/base.c | |
| parent | c183a603e8d8a5a189729b77d0c623a3d5950e5f (diff) | |
| parent | c291b015158577be533dd5a959dfc09bab119eed (diff) | |
Merge branch 'x86/urgent' into x86/apic
Bring in the upstream modifications so we can fixup the silent merge
conflict which is introduced by this merge.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/proc/base.c')
| -rw-r--r-- | fs/proc/base.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 54e270262979..ac0df4dde823 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
| @@ -1556,18 +1556,13 @@ static const struct file_operations proc_pid_set_comm_operations = { | |||
| 1556 | static int proc_exe_link(struct dentry *dentry, struct path *exe_path) | 1556 | static int proc_exe_link(struct dentry *dentry, struct path *exe_path) |
| 1557 | { | 1557 | { |
| 1558 | struct task_struct *task; | 1558 | struct task_struct *task; |
| 1559 | struct mm_struct *mm; | ||
| 1560 | struct file *exe_file; | 1559 | struct file *exe_file; |
| 1561 | 1560 | ||
| 1562 | task = get_proc_task(d_inode(dentry)); | 1561 | task = get_proc_task(d_inode(dentry)); |
| 1563 | if (!task) | 1562 | if (!task) |
| 1564 | return -ENOENT; | 1563 | return -ENOENT; |
| 1565 | mm = get_task_mm(task); | 1564 | exe_file = get_task_exe_file(task); |
| 1566 | put_task_struct(task); | 1565 | put_task_struct(task); |
| 1567 | if (!mm) | ||
| 1568 | return -ENOENT; | ||
| 1569 | exe_file = get_mm_exe_file(mm); | ||
| 1570 | mmput(mm); | ||
| 1571 | if (exe_file) { | 1566 | if (exe_file) { |
| 1572 | *exe_path = exe_file->f_path; | 1567 | *exe_path = exe_file->f_path; |
| 1573 | path_get(&exe_file->f_path); | 1568 | path_get(&exe_file->f_path); |
