Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29754
b: refs/heads/master
c: 0710d36
h: refs/heads/master
v: v3
  • Loading branch information
Florin Malita authored and Linus Torvalds committed Jun 25, 2006
1 parent 96379e5 commit 05afd48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eab03ac7bd3e0da99eb9dc068772a85a5e3f3577
refs/heads/master: 0710d36a0fd5db3176369397f0fc49db32a63507
6 changes: 6 additions & 0 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,9 @@ static int v9fs_vfs_readlink(struct dentry *dentry, char __user * buffer,
int ret;
char *link = __getname();

if (unlikely(!link))
return -ENOMEM;

if (buflen > PATH_MAX)
buflen = PATH_MAX;

Expand Down Expand Up @@ -1227,6 +1230,9 @@ v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir,
}

name = __getname();
if (unlikely(!name))
return -ENOMEM;

sprintf(name, "%d\n", oldfid->fid);
retval = v9fs_vfs_mkspecial(dir, dentry, V9FS_DMLINK, name);
__putname(name);
Expand Down

0 comments on commit 05afd48

Please sign in to comment.