diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-26 20:41:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:10:05 -0400 |
commit | ecaa80fbe589d2638b8a8a075916b1862a1124e2 (patch) | |
tree | 9ca778e8ab71ddb92439d6c98014e981685de76e /arch/parisc | |
parent | 7456a29bcf3484dee37457370f89d57814299c76 (diff) |
switch hpux_getdents() to fget_light()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/hpux/fs.c | 6 |
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 | |||
112 | struct file * file; | 112 | struct file * file; |
113 | struct hpux_dirent __user * lastdirent; | 113 | struct hpux_dirent __user * lastdirent; |
114 | struct getdents_callback buf; | 114 | struct getdents_callback buf; |
115 | int error = -EBADF; | 115 | int error = -EBADF, fput_needed; |
116 | 116 | ||
117 | file = fget(fd); | 117 | file = fget_light(fd, &fput_needed); |
118 | if (!file) | 118 | if (!file) |
119 | goto out; | 119 | goto out; |
120 | 120 | ||
@@ -134,7 +134,7 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i | |||
134 | error = count - buf.count; | 134 | error = count - buf.count; |
135 | } | 135 | } |
136 | 136 | ||
137 | fput(file); | 137 | fput_light(file, fput_needed); |
138 | out: | 138 | out: |
139 | return error; | 139 | return error; |
140 | } | 140 | } |