diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-24 16:46:50 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-24 16:46:50 +0100 |
commit | c2faa45297d07aa717af3caa5adb2d397ebb5468 (patch) | |
tree | fc7f9435a8caf952e8928dcfb74e11eacea2eb21 /proc | |
parent | 933a1d8f6240355bf066963f7fa226eefb8f1e25 (diff) | |
download | hurd-c2faa45297d07aa717af3caa5adb2d397ebb5468.tar.gz hurd-c2faa45297d07aa717af3caa5adb2d397ebb5468.tar.bz2 hurd-c2faa45297d07aa717af3caa5adb2d397ebb5468.zip |
proc: Do not reference a task port when allocation failed
Diffstat (limited to 'proc')
-rw-r--r-- | proc/mgt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1198,7 +1198,8 @@ add_tasks (task_t task) if (!p) { p = new_proc (tasks[j]); - set = 1; + if (p) + set = 1; } if (!foundp && tasks[j] == task) foundp = p; |