From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 8CC801B1D0 for ; Wed, 21 Feb 2018 15:14:33 +0100 (CET) Received: by mail-lf0-f68.google.com with SMTP id t204so2557871lff.9 for ; Wed, 21 Feb 2018 06:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=G3e/WtnOX6ol2WonkpveV8KOdhGqfFXs94gWMjySxRY=; b=Ze1Nsn9i7m2CuuqdD5mk3q856eZqbvMr8RXA6TZJuTAdXfq97xZoucj21/bzhQUxY4 IefINfeYdUSkg4Tvk7hMCu+zrdrcPHpC7MCv5sDUrFLvzotZgnx+xj+++sthQU+Pg1Qo XxaeJ+Sb62RD/fZl+wCODK5xZtOTxRVp5+iu2yexjQ5RhfHE7J6lBP6PKdBQKGH5DwV5 AeVIixFdCUTxu2xbpUhtMCarpK8VKwKWLBg/ChPHmDmdXt4aWnaLJ9hNd/laZRzkYaya ruyybR8CkljmMYz+PZ2GBZh6y+17RquwZO6wzDYNsppalU/cx2aAa48+snymSCv5u0N+ bXFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=G3e/WtnOX6ol2WonkpveV8KOdhGqfFXs94gWMjySxRY=; b=KN6sh6qOCK9b7SQUsF7wXN8JqpYHJALwgI/E1p1z7JW1yqo8ezIeRYOWXuX3wodpQ7 gR/axTTUazIpZUPWPQrHu1KLhcJLwYBKXzJU5lgtKQe9Mxy8iCg32Ml/U2WjXfLWseiw 1naOctRXlQfpRJe7RL1cLdn8NOePrR9ib0C1Y0WKJ25VdYWE8rWYIhpEWGJ4t9SIDVIN uKEzBJ/JVZO/mDsY6P0a/LHG3DOg+Sp/rYaDCAxX4NWVQm3UZTKOIOScKkwp5At9nBG/ RoEIqgHIvBy++tIc6S1odhJRMM8LrfhyhMKyc5NlOnpvM0g5futwYCjszbkCHre6cEKu gyIw== X-Gm-Message-State: APf1xPAO6cSv2J/zUsnxY1dxC9pJIUMYAFruurc3xxmLxNDne31X2HWv PR6hFkk0ZKIEwAVXM+FOdcS0iDo25mo= X-Google-Smtp-Source: AH8x225coUMKzae0C8NXpgWPF8svj4jfhuIcWmsXRJWMNsg/Lc6q8MIei7teRx3Iv0GOmyVhK30Zlg== X-Received: by 10.25.79.19 with SMTP id d19mr2536088lfb.59.1519222473027; Wed, 21 Feb 2018 06:14:33 -0800 (PST) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id e27sm5038177lff.89.2018.02.21.06.14.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 06:14:32 -0800 (PST) From: Tomasz Duszynski To: dev@dpdk.org Cc: mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, jck@semihalf.com, stable@dpdk.org, Tomasz Duszynski Date: Wed, 21 Feb 2018 15:14:13 +0100 Message-Id: <1519222460-14605-2-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519222460-14605-1-git-send-email-tdu@semihalf.com> References: <1519222460-14605-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 1/8] net/mrvl: fix crash when port is closed without starting 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: , X-List-Received-Date: Wed, 21 Feb 2018 14:14:33 -0000 From: Natalie Samsonov Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Natalie Samsonov Signed-off-by: Tomasz Duszynski --- drivers/net/mrvl/mrvl_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index 705c4bd..3611a92 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -686,7 +686,8 @@ mrvl_dev_stop(struct rte_eth_dev *dev) pp2_cls_qos_tbl_deinit(priv->qos_tbl); priv->qos_tbl = NULL; } - pp2_ppio_deinit(priv->ppio); + if (priv->ppio) + pp2_ppio_deinit(priv->ppio); priv->ppio = NULL; } -- 2.7.4