Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328995
b: refs/heads/master
c: ecaa80f
h: refs/heads/master
i:
  328993: dc0a04e
  328991: 6a25c88
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 3e2739e commit 5f13b14
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: 7456a29bcf3484dee37457370f89d57814299c76
refs/heads/master: ecaa80fbe589d2638b8a8a075916b1862a1124e2
6 changes: 3 additions & 3 deletions trunk/arch/parisc/hpux/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i
struct file * file;
struct hpux_dirent __user * lastdirent;
struct getdents_callback buf;
int error = -EBADF;
int error = -EBADF, fput_needed;

file = fget(fd);
file = fget_light(fd, &fput_needed);
if (!file)
goto out;

Expand All @@ -134,7 +134,7 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i
error = count - buf.count;
}

fput(file);
fput_light(file, fput_needed);
out:
return error;
}
Expand Down

0 comments on commit 5f13b14

Please sign in to comment.