Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328989
b: refs/heads/master
c: 6b48c5b
h: refs/heads/master
i:
  328987: 351c2ce
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 2c176f1 commit 94b6436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: bf2965d5b5950d09e934ea5d961d79d0ed1fae7e
refs/heads/master: 6b48c5b2079af1f81d8f249ae07a988d8c45b32f
6 changes: 3 additions & 3 deletions trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)
{
struct file *file;
int error = -EBADF;
int error = -EBADF, fput_needed;

file = fget(fd);
file = fget_light(fd, &fput_needed);
if (file) {
error = do_fallocate(file, mode, offset, len);
fput(file);
fput_light(file, fput_needed);
}

return error;
Expand Down

0 comments on commit 94b6436

Please sign in to comment.