Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190067
b: refs/heads/master
c: 083fd8b
h: refs/heads/master
i:
  190065: 2439d2e
  190063: 7d2b9c3
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Apr 21, 2010
1 parent f146e47 commit f308ed5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 05ce7bfe547c9fa967d9cab6c37867a9cb6fb3fa
refs/heads/master: 083fd8b21a13742b37ab347089c73f895a896672
24 changes: 12 additions & 12 deletions trunk/fs/afs/mntpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
{
struct afs_super_info *super;
struct vfsmount *mnt;
struct page *page = NULL;
struct page *page;
size_t size;
char *buf, *devname = NULL, *options = NULL;
char *buf, *devname, *options;
int ret;

_enter("{%s}", mntpt->d_name.name);
Expand All @@ -150,22 +150,22 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
ret = -EINVAL;
size = mntpt->d_inode->i_size;
if (size > PAGE_SIZE - 1)
goto error;
goto error_no_devname;

ret = -ENOMEM;
devname = (char *) get_zeroed_page(GFP_KERNEL);
if (!devname)
goto error;
goto error_no_devname;

options = (char *) get_zeroed_page(GFP_KERNEL);
if (!options)
goto error;
goto error_no_options;

/* read the contents of the AFS special symlink */
page = read_mapping_page(mntpt->d_inode->i_mapping, 0, NULL);
if (IS_ERR(page)) {
ret = PTR_ERR(page);
goto error;
goto error_no_page;
}

ret = -EIO;
Expand Down Expand Up @@ -196,12 +196,12 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
return mnt;

error:
if (page)
page_cache_release(page);
if (devname)
free_page((unsigned long) devname);
if (options)
free_page((unsigned long) options);
page_cache_release(page);
error_no_page:
free_page((unsigned long) options);
error_no_options:
free_page((unsigned long) devname);
error_no_devname:
_leave(" = %d", ret);
return ERR_PTR(ret);
}
Expand Down

0 comments on commit f308ed5

Please sign in to comment.