From patchwork Wed Apr 24 11:45:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 162770 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp557237jan; Wed, 24 Apr 2019 04:46:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzThCwKXYD5Orayd6SAJq23y4Rqx/NTfy0KJbVAcwWSMH6ir/ZtmCVi8NjhB7y8uzbbLWHF X-Received: by 2002:a17:906:e0c7:: with SMTP id gl7mr9374970ejb.274.1556106404127; Wed, 24 Apr 2019 04:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556106404; cv=none; d=google.com; s=arc-20160816; b=rMhfveqFFYG6D1qqhS0flCMsxmi2b1InAszPSCbOK8EiUVBsZFymKPdu0RWhQtuijK KdggGDyHjtsWR14z9oD3++GRaO0SQiKig91La7abm9PaCFPj/HP/753t0IysawLy+hZ1 zUMGN4/hYBGhSenqU1CG2cskFiPYRkGPdW09XZvjb/tMIA5byz8igjet6ZPX5todbbJM TtkWvq+KW8ldAJcQzRCmTXfkMdYrRap2i4zCZsBMIuyGoKE54s/oAtX6tRc/euLKMHWM tBgQgArDA/wkLD4vRvspeKfPgjmLrVBEjG2NAu2jgZKhBGZQrh0i8VQiEl0V0EXG0cxn 0orw== 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:message-id:date:cc:to :from; bh=sKwm9mk8psPFIirwCaHA4+OlxlPpC7Y5IsnSF0sq8e8=; b=vmmNYhwrsOXCK3aM/1EeDbuBdGhVpwO/7qpH8LENT/nUYeiWb88qJX1r+ZfcGRIoc3 NslsWJYtasf06/bkgcGE7f6FR79lDy1Q3eup+yH/2FW+g6lvZS3tZVbr/ePJBA7CXWNO 3nc6j5fyCa4DYX4ms7Ei1aKo0/Bcj/GbwOAy1VaG8YDC5izWVHc2Vg/9OAT7EfJ0/Lll a9Tc3ZMYxSjOfrs6iYAiaD89a19zVs8ZmwcB4rF0piu81kIfOcCBDSDIjqAdEFG+utnm SoK8VJyAj9Hu58xXwrR78LoDKcHpsA48vUYMq0HZh6uLCQQHbbP0IvSyfM+J+AMVj0hj hyBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id s43si4712183edb.145.2019.04.24.04.46.43; Wed, 24 Apr 2019 04:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C1D81B51E; Wed, 24 Apr 2019 13:46:36 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id A54BD1B3D8; Wed, 24 Apr 2019 13:46:31 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5D91B200195; Wed, 24 Apr 2019 13:46:31 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8EEDC200158; Wed, 24 Apr 2019 13:46:29 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D2494402A3; Wed, 24 Apr 2019 19:46:26 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, stable@dpdk.org Date: Wed, 24 Apr 2019 17:15:16 +0530 Message-Id: <20190424114520.23655-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 1/5] raw/dpaa2_qdma: fix spin lock release condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The code shall be unlock post the lock. Fixes: c22fab9a6c34 ("raw/dpaa2_qdma: support configuration APIs") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c index a41c1e385..102d423c6 100644 --- a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c +++ b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c @@ -984,7 +984,7 @@ rte_qdma_vq_destroy(uint16_t vq_id) memset(qdma_vq, 0, sizeof(struct qdma_virt_queue)); - rte_spinlock_lock(&qdma_dev.lock); + rte_spinlock_unlock(&qdma_dev.lock); return 0; }