From patchwork Mon May 22 22:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 100334 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp49864qge; Mon, 22 May 2017 15:16:37 -0700 (PDT) X-Received: by 10.55.176.2 with SMTP id z2mr5100229qke.71.1495491397089; Mon, 22 May 2017 15:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495491397; cv=none; d=google.com; s=arc-20160816; b=zSnwT6mG6nuD5bTeIdyHUNELL8S2jO4bGLdqW5LP9W50sWxlkaXorft3chtofAxeTU 3GPbLn2zXpiOOafrYH8Iye8GfNRJet9uN1fOzYCg/fwox8ZkNz9fGOItW9BG5WuyyOK4 V1PsZE67gDKDhsGs+gYU5CRKsBDrCG8y282qISM5B5cEWOTmJYYdDzNI5DUEfj+GQ+mb 5yxcvbvMIcLyQqASDpMX1dCoeO0ZI3G4SsGF8pRrQAt2+zJ0XBzXW7EnaGVKp7UrojI3 Mc65prZelkpGMDsXhjLmsi3FjxsAcaf2d77vj5GxBmPDuLXCTuGKogY/DIAzYP6kzEZu ltIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=o2NNoH/qnv8comDKGUC6jRZKa7mr8JP0vS1SMo2s8I4=; b=zXvgDDZbMF2xERjZGkBJHgzp+Los53NF0bKKsGChkzWLOASF2e4VTKRzIhrS7UeB8N lBcfzE5MAYZ0fw1sgBJWOeV55ixLSInltoka9b14bUJvyVTuM2Ri5RrXNnqxrgcnYTP4 Wsu7SDV74VQT9CHI4cspP3mj5srxkuMBkZ3wZRnojw5516KnBDxlq9rWSr4+1NjEsfXe B8nxTrZrG35ryVtJjIVmc4T8MTf81bMIR/bc7vMoQSxEC7IwDOCdfbq6YMb0wZsMq+no hfN8faPYW91Ohx0Z58qKhIq9+6OwHBuoDAlTVK9ingzFIMzTjpRtB593Cztd22BQo8K0 P1iA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f2si19672650qtd.210.2017.05.22.15.16.36; Mon, 22 May 2017 15:16:37 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id BA9D2609D0; Mon, 22 May 2017 22:16:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id EC1AE60C40; Mon, 22 May 2017 22:02:34 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A5E7960C32; Mon, 22 May 2017 22:02:26 +0000 (UTC) Received: from forward1h.cmail.yandex.net (forward1h.cmail.yandex.net [87.250.230.16]) by lists.linaro.org (Postfix) with ESMTPS id 407ED60B3F for ; Mon, 22 May 2017 22:00:32 +0000 (UTC) Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [77.88.61.130]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id 9918621152 for ; Tue, 23 May 2017 01:00:30 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id 7A7092840E04 for ; Tue, 23 May 2017 01:00:30 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ll1QrMKPBI-0TEexY9g; Tue, 23 May 2017 01:00:29 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 23 May 2017 01:00:08 +0300 Message-Id: <1495490409-30066-20-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495490409-30066-1-git-send-email-odpbot@yandex.ru> References: <1495490409-30066-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 34 Subject: [lng-odp] [PATCH API-NEXT v2 19/20] linux-generic: crypto: NULL session->next pointer on session allocation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 34 (lumag:crypto-update-main-new) ** https://github.com/Linaro/odp/pull/34 ** Patch: https://github.com/Linaro/odp/pull/34.patch ** Base sha: 826ee894aa0ebd09d42a17e1de077c46bc5b366a ** Merge commit sha: 7c49c61063e2d57f049a5436cf12a3c36710bb34 **/ platform/linux-generic/odp_crypto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index e5468c40..cfa86569 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -94,8 +94,10 @@ odp_crypto_generic_session_t *alloc_session(void) odp_spinlock_lock(&global->lock); session = global->free; - if (session) + if (session) { global->free = session->next; + session->next = NULL; + } odp_spinlock_unlock(&global->lock); return session;