| skipped 1553 lines |
1554 | 1554 | | */ |
1555 | 1555 | | |
1556 | 1556 | | RUN_CLONE_RESTORE_FN(ret, clone_flags, new_sp, parent_tid, thread_args, args->clone_restore_fn); |
1557 | | - | if (ret != thread_args[i].pid - 1) { |
1558 | | - | pr_err("Unable to create a thread: %ld", ret); |
| 1557 | + | if (ret != thread_args[i].pid) { |
| 1558 | + | pr_err("Unable to create a thread: %ld\n", ret); |
1559 | 1559 | | goto core_restore_end; |
1560 | 1560 | | } |
1561 | 1561 | | } |
| skipped 147 lines |