Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333911
b: refs/heads/master
c: f81700b
h: refs/heads/master
i:
  333909: d545e37
  333907: 711b2b7
  333903: cdf42c1
v: v3
  • Loading branch information
Jeff Layton authored and Al Viro committed Oct 13, 2012
1 parent 4d56917 commit fe9e705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7950e3852ab86826b7349a535d2e8b0000340d7f
refs/heads/master: f81700bd831efcd12eb7f0e66b24b16c2ad00a32
5 changes: 3 additions & 2 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,8 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd)
pid_t tgid = task_tgid_nr_ns(current, ns);
char *name = ERR_PTR(-ENOENT);
if (tgid) {
name = __getname();
/* 11 for max length of signed int in decimal + NULL term */
name = kmalloc(12, GFP_KERNEL);
if (!name)
name = ERR_PTR(-ENOMEM);
else
Expand All @@ -2273,7 +2274,7 @@ static void proc_self_put_link(struct dentry *dentry, struct nameidata *nd,
{
char *s = nd_get_link(nd);
if (!IS_ERR(s))
__putname(s);
kfree(s);
}

static const struct inode_operations proc_self_inode_operations = {
Expand Down

0 comments on commit fe9e705

Please sign in to comment.