diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index e94b58b496f1..9af49a3984f1 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -850,6 +850,10 @@ static ssize_t mem_write(struct file * file, const char __user *buf, | |||
850 | if (check_mem_permission(task)) | 850 | if (check_mem_permission(task)) |
851 | goto out; | 851 | goto out; |
852 | 852 | ||
853 | copied = -EIO; | ||
854 | if (file->private_data != (void *)((long)current->self_exec_id)) | ||
855 | goto out; | ||
856 | |||
853 | copied = -ENOMEM; | 857 | copied = -ENOMEM; |
854 | page = (char *)__get_free_page(GFP_TEMPORARY); | 858 | page = (char *)__get_free_page(GFP_TEMPORARY); |
855 | if (!page) | 859 | if (!page) |