mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
uprobes: Kill the bogus IS_ERR_VALUE(xol_vaddr) check
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 <[email protected]> Acked-by: Anton Arapov <[email protected]> Acked-by: Srikar Dronamraju <[email protected]>
This commit is contained in:
parent
608e7427c0
commit
af4355e91f
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue