> */
> if (find_vma_intersection(mm, oldbrk, newbrk+PAGE_SIZE)) {
>- return -ENOMEM;
>+ ret = -ENOMEM;
> goto out;
> }
Usually in cases like this is better to put the ret = -ENOMEM in the fast
path, so the goto will be the slow path.
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/