aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-11 20:08:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-11 20:09:17 +0100
commit278fdabd8c45dc215222facd36febfc3f6f2a95d (patch)
tree77d99ef0b91842caf874d9e3a77934c02b80df7a /hurd
parent58bb655acb3afc7ed13354eda307019604f77137 (diff)
downloadglibc-278fdabd8c45dc215222facd36febfc3f6f2a95d.zip
glibc-278fdabd8c45dc215222facd36febfc3f6f2a95d.tar.gz
glibc-278fdabd8c45dc215222facd36febfc3f6f2a95d.tar.bz2
hurd: Fix spawni's user_link reallocation
* hurd/hurd/userlink.h (_hurd_userlink_move): Make new_link's predecessor point to new_link instead of link.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/userlink.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/hurd/userlink.h b/hurd/hurd/userlink.h
index 484706a..b23567e 100644
--- a/hurd/hurd/userlink.h
+++ b/hurd/hurd/userlink.h
@@ -158,11 +158,11 @@ _hurd_userlink_move (struct hurd_userlink *new_link,
if (new_link->resource.next != NULL)
new_link->resource.next->resource.prevp = &new_link->resource.next;
- *new_link->resource.prevp = link;
+ *new_link->resource.prevp = new_link;
if (new_link->thread.next != NULL)
new_link->thread.next->thread.prevp = &new_link->thread.next;
- *new_link->thread.prevp = link;
+ *new_link->thread.prevp = new_link;
}
# endif
#endif