Commit af4355e9 authored by Oleg Nesterov's avatar Oleg Nesterov

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: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarAnton Arapov <anton@redhat.com>
Acked-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
parent 608e7427
...@@ -1223,8 +1223,7 @@ static void xol_free_insn_slot(struct task_struct *tsk) ...@@ -1223,8 +1223,7 @@ static void xol_free_insn_slot(struct task_struct *tsk)
return; return;
slot_addr = tsk->utask->xol_vaddr; slot_addr = tsk->utask->xol_vaddr;
if (unlikely(!slot_addr))
if (unlikely(!slot_addr || IS_ERR_VALUE(slot_addr)))
return; return;
area = tsk->mm->uprobes_state.xol_area; area = tsk->mm->uprobes_state.xol_area;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment