From patchwork Sun Nov 11 19:15:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 996155 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-97144-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="QDwR1bb0"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42tNsF6BJ8z9s7h for ; Mon, 12 Nov 2018 06:16:01 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=tnF vhWL5XR1sXxxwvN2jyLFgLFSfWCVj8mveCIZhk4BI8cY4rexJEgA4v98RpVnrfXN LKufmIt+3bqr1lwGgNR0yo1msNSvCU2425QwXNVklrHlfuoX4PfosiXlwQd1Qg8K JLH7JrAZl2Ng47V6GqSBSdlg4XX7Tnipj5+SMu0I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=1T7x1syAF m4wQmKdXA6RxQdancs=; b=QDwR1bb0gYtg1sod8mEh0sf+v83oJnuowNhNQcZT2 ARMG/OlcoPMU7QhSmQcqVCZ2KHI4tl7jejjudBr5qUboGqn4Z1Qn81km042kggNo /HDG78MXUudfhXpgftcwvn1A1j8e9O7avMaVxQUNWazVemkmGqg2LUlJIbedjhgo MQ= Received: (qmail 26504 invoked by alias); 11 Nov 2018 19:15:55 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 26358 invoked by uid 89); 11 Nov 2018 19:15:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Fix spawni's user_link reallocation Date: Sun, 11 Nov 2018 20:15:14 +0100 Message-Id: <20181111191514.15866-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 * hurd/hurd/userlink.h (_hurd_userlink_move): Make new_link's predecessor point to new_link instead of link. --- hurd/hurd/userlink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hurd/hurd/userlink.h b/hurd/hurd/userlink.h index 484706a67a..b23567e218 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