Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328991
b: refs/heads/master
c: 6114437
h: refs/heads/master
i:
  328989: 94b6436
  328987: 351c2ce
  328983: 0051698
  328975: 9f77a8d
  328959: 90a8d97
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 2fb05c0 commit 6a25c88
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: d6483b7a78438bc333560d11b69e6a6a6cf55940
refs/heads/master: 611443783ada3464c44e9168f6b7de2cb3fed39a
5 changes: 3 additions & 2 deletions trunk/mm/fadvise.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
*/
SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice)
{
struct file *file = fget(fd);
int fput_needed;
struct file *file = fget_light(fd, &fput_needed);
struct address_space *mapping;
struct backing_dev_info *bdi;
loff_t endbyte; /* inclusive */
Expand Down Expand Up @@ -128,7 +129,7 @@ SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice)
ret = -EINVAL;
}
out:
fput(file);
fput_light(file, fput_needed);
return ret;
}
#ifdef CONFIG_HAVE_SYSCALL_WRAPPERS
Expand Down

0 comments on commit 6a25c88

Please sign in to comment.