Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335791
b: refs/heads/master
c: f58b59c
h: refs/heads/master
i:
  335789: b9d357d
  335787: 73e941f
  335783: 2ef2132
  335775: 0193213
v: v3
  • Loading branch information
Xiaotian Feng authored and Linus Torvalds committed Nov 16, 2012
1 parent 5a281d4 commit 84589b2
Show file tree
Hide file tree
Showing 2 changed files with 3 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: bea8c150a7efbc0f204e709b7274fe273f55e0d3
refs/heads/master: f58b59c1df3cb990d644018e1461cd4acd3c1700
4 changes: 2 additions & 2 deletions trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,9 +1494,8 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
BUG_ON(!current->mm);

pathname = getname(specialfile);
err = PTR_ERR(pathname);
if (IS_ERR(pathname))
goto out;
return PTR_ERR(pathname);

victim = file_open_name(pathname, O_RDWR|O_LARGEFILE, 0);
err = PTR_ERR(victim);
Expand Down Expand Up @@ -1608,6 +1607,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
out_dput:
filp_close(victim, NULL);
out:
putname(pathname);
return err;
}

Expand Down

0 comments on commit 84589b2

Please sign in to comment.