Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33816
b: refs/heads/master
c: b8444d0
h: refs/heads/master
v: v3
  • Loading branch information
Stephane Eranian authored and Tony Luck committed Sep 8, 2006
1 parent 97373fc commit 84c6ef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9f7bee1df223dcf83743b46cb06c08d95497ec0
refs/heads/master: b8444d00762703e1b6146fce12ce2684885f8bf6
4 changes: 3 additions & 1 deletion trunk/arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4936,13 +4936,15 @@ sys_perfmonctl (int fd, int cmd, void __user *arg, int count)
if (likely(ctx)) {
DPRINT(("context unlocked\n"));
UNPROTECT_CTX(ctx, flags);
fput(file);
}

/* copy argument back to user, if needed */
if (call_made && PFM_CMD_RW_ARG(cmd) && copy_to_user(arg, args_k, base_sz*count)) ret = -EFAULT;

error_args:
if (file)
fput(file);

kfree(args_k);

DPRINT(("cmd=%s ret=%ld\n", PFM_CMD_NAME(cmd), ret));
Expand Down

0 comments on commit 84c6ef2

Please sign in to comment.