summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-08-27 02:41:49 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-09-27 03:10:05 +0200
commitecaa80fbe589d2638b8a8a075916b1862a1124e2 (patch)
tree9ca778e8ab71ddb92439d6c98014e981685de76e /arch
parentswitch itanic perfmonctl(2) to fget_light() (diff)
downloadlinux-ecaa80fbe589d2638b8a8a075916b1862a1124e2.tar.xz
linux-ecaa80fbe589d2638b8a8a075916b1862a1124e2.zip
switch hpux_getdents() to fget_light()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/hpux/fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c
index c71eb6c79897..41e01832cb21 100644
--- a/arch/parisc/hpux/fs.c
+++ b/arch/parisc/hpux/fs.c
@@ -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;
@@ -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;
}