diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 071edcb3e62dc39add1048ef76b54e6f7cb4e162..f6c7062fb9509ddd9ec2381801d46f2800fb068f 100644 --- 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;