From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by dpdk.org (Postfix) with ESMTP id 467C65F72 for ; Thu, 15 Mar 2018 08:52:16 +0100 (CET) Received: by mail-lf0-f65.google.com with SMTP id f75-v6so8690064lfg.6 for ; Thu, 15 Mar 2018 00:52:16 -0700 (PDT) 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=MS0Baevx6j4CUTUlD8uzUlDz0Q6UI1oreICNAMERcKs=; b=fl2db4rPSRFqAhNzw0h29z1+ywBUA8GUPb/d0ERMrSTz1lnh9ukUjV7RbMcijlmEzd m3GSzGXmae3uJHMyKHNfJvnJWdd2okHwinLVgWhG4dCt4eKjr3o4uU/T8zpdgfA86pvN kw3n19OkLzwjp5/83dpzprq6YgEIv/6swX5QOZgwvgzcBT1k5TcgCUSmEyeZBF13Wpjc s66yraIuQikDKuZTajhaK8v87LRyck8RjYlvF1ksprSa8jU504QJKqn1ELgUzrfpXBOS ynkeEMOwcb0o5nYdlfO/pxxxqv97EtjksTttcubU3H4h9Cb7ZeYav3J+GHDGq+6RUQxm UsWw== 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=MS0Baevx6j4CUTUlD8uzUlDz0Q6UI1oreICNAMERcKs=; b=dd3V2eV4RU2l5IPIG559cUa3c4d2kejWq1nFym8Z0pSe70RPmXPW1+K/FS5vtIanhA xK3C+YKVwtW03dkUbLWjdShVvEEmhUu/MOF3fnTIrJOjlKhQdEJh4+GyE4ff12+o2pZW LowzeUIT1eMrdmA+jXCvZPWWtg97zKPeKTXkK5+G3K4Y1ncJCM2NQInSNolO3Mjrwsz1 ZSvDm0SQzsuPWb6wkraWj4FMPQzj9BISldZwy2anZJKYy9gl1H7syiXDbkYSHrZ8WDqK Wjdr9qrbdN/Wf3WWU+VaMp77UBmatjY/dBtB7hBpg8bQi5bzuFSkakqjAj3TpfBz8q1t YNSg== X-Gm-Message-State: AElRT7E5wQxN0E11mnoREgFCSfeXMnfmDxz5oRXIg/BFbo19uLFHAjAe O87nO9RDu3nDsRsAnaMzRzG3/jZALPc= X-Google-Smtp-Source: AG47ELuUrFouD6MXgBYtd6/AYx6GYiZYbnqn1CaDymP2T6aoCNoBxGXTh4TBHYPy+9hBus0luXzPNw== X-Received: by 2002:a19:a68f:: with SMTP id p137-v6mr5749781lfe.41.1521100334360; Thu, 15 Mar 2018 00:52:14 -0700 (PDT) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id d14sm972925ljd.31.2018.03.15.00.52.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 00:52:13 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, jck@semihalf.com, jianbo.liu@arm.com, stable@dpdk.org, Tomasz Duszynski Date: Thu, 15 Mar 2018 08:51:57 +0100 Message-Id: <1521100324-26558-2-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521100324-26558-1-git-send-email-tdu@semihalf.com> References: <1520844132-29969-1-git-send-email-tdu@semihalf.com> <1521100324-26558-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v3 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: Thu, 15 Mar 2018 07:52:17 -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 ac8f2d6..e313768 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -658,7 +658,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