projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
608e742
)
uprobes: Kill the bogus IS_ERR_VALUE(xol_vaddr) check
author
Oleg Nesterov
<oleg@redhat.com>
Mon, 31 Dec 2012 17:37:11 +0000
(18:37 +0100)
committer
Oleg Nesterov
<oleg@redhat.com>
Fri, 8 Feb 2013 16:47:13 +0000
(17:47 +0100)
utask->xol_vaddr is either zero or valid, remove the bogus
IS_ERR_VALUE() check in xol_free_insn_slot().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/events/uprobes.c
b/kernel/events/uprobes.c
index 071edcb3e62dc39add1048ef76b54e6f7cb4e162..f6c7062fb9509ddd9ec2381801d46f2800fb068f 100644
(file)
--- a/
kernel/events/uprobes.c
+++ b/
kernel/events/uprobes.c
@@
-1223,8
+1223,7
@@
static void xol_free_insn_slot(struct task_struct *tsk)
return;
slot_addr = tsk->utask->xol_vaddr;
-
- if (unlikely(!slot_addr || IS_ERR_VALUE(slot_addr)))
+ if (unlikely(!slot_addr))
return;
area = tsk->mm->uprobes_state.xol_area;