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:
866ecfd
)
switch itanic perfmonctl(2) to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 00:39:16 +0000
(20:39 -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/ia64/kernel/perfmon.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kernel/perfmon.c
b/arch/ia64/kernel/perfmon.c
index 3fa4bc536953c9494eabc776b1c77a980cb2e148..79826c13b8b6779f2f999f49550ec0735776f928 100644
(file)
--- a/
arch/ia64/kernel/perfmon.c
+++ b/
arch/ia64/kernel/perfmon.c
@@
-4791,6
+4791,7
@@
sys_perfmonctl (int fd, int cmd, void __user *arg, int count)
int narg, completed_args = 0, call_made = 0, cmd_flags;
int (*func)(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs);
int (*getsize)(void *arg, size_t *sz);
+ int fput_needed;
#define PFM_MAX_ARGSIZE 4096
/*
@@
-4879,7
+4880,7
@@
restart_args:
ret = -EBADF;
- file = fget
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
if (unlikely(file == NULL)) {
DPRINT(("invalid fd %d\n", fd));
goto error_args;
@@
-4920,7
+4921,7
@@
abort_locked:
error_args:
if (file)
- fput
(file
);
+ fput
_light(file, fput_needed
);
kfree(args_k);