]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/events/uprobes.c
Merge tag 'v5.6-rc1' into arm/fixes
[linux.git] / kernel / events / uprobes.c
index c74761004ee546272ebbbe56bb2fb62fd4148b0f..ece7e13f6e4ac810f3fe96c5b94c7e4da0de38ea 100644 (file)
@@ -1457,7 +1457,7 @@ static int xol_add_vma(struct mm_struct *mm, struct xol_area *area)
                /* Try to map as high as possible, this is only a hint. */
                area->vaddr = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE,
                                                PAGE_SIZE, 0, 0);
-               if (area->vaddr & ~PAGE_MASK) {
+               if (IS_ERR_VALUE(area->vaddr)) {
                        ret = area->vaddr;
                        goto fail;
                }