projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7456a29
)
switch hpux_getdents() to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 00:41:49 +0000
(20:41 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:05 +0000
(21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/parisc/hpux/fs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/hpux/fs.c
b/arch/parisc/hpux/fs.c
index c71eb6c7989707d0fbbc609a8e27ec5261204b25..41e01832cb21a7c967d9bc20ccf0baea1fab297c 100644
(file)
--- 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
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
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;
}