projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
132ea24
)
switch osf_getdirentries() to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 00:36:23 +0000
(20:36 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:04 +0000
(21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/osf_sys.c
patch
|
blob
|
history
diff --git
a/arch/alpha/kernel/osf_sys.c
b/arch/alpha/kernel/osf_sys.c
index
bc1acdd
..
d6c49e6
100644
(file)
--- a/
arch/alpha/kernel/osf_sys.c
+++ b/
arch/alpha/kernel/osf_sys.c
@@
-144,12
+144,12
@@
SYSCALL_DEFINE4(osf_getdirentries, unsigned int, fd,
struct osf_dirent __user *, dirent, unsigned int, count,
long __user *, basep)
{
- int error;
+ int error
, fput_needed
;
struct file *file;
struct osf_dirent_callback buf;
error = -EBADF;
- file = fget
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
if (!file)
goto out;
@@
-164,7
+164,7
@@
SYSCALL_DEFINE4(osf_getdirentries, unsigned int, fd,
if (count != buf.count)
error = count - buf.count;
- fput
(file
);
+ fput
_light(file, fput_needed
);
out:
return error;
}