From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id 5A9AD2BCD for ; Mon, 12 Mar 2018 09:42:25 +0100 (CET) Received: by mail-lf0-f66.google.com with SMTP id 37-v6so21872567lfs.7 for ; Mon, 12 Mar 2018 01:42:25 -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=pNj/hubip5+crZM6img+ETag3kfJi9stTwue4190sSX6s2JmUvcQ5ym6nu49IsZyoY RDozfLq5JpP/uKaRYe+vUhXYj+JZUyX9DonjEfCTwnPNnDLiGIlaQ9Xn3aLWDWnD2I0o tfgFL6qaaiUeKobexOTT6oDhphA4SpzGS5oFKdDBD5iTjbNL6xEjZeqMmWCI+XSffMHf xQoBY1ROVsKm9objl2FtB+c9WZOrYjzhwv7mhWt7QjKvj+8Dt2f1VsNlHDs/+YDtc2xP KGJtySB8WKaG0nIz5VFSNMmUoaP9Oz1uhmEgIiDC5h81MKJkKN9/i6FsIHtA7G4ITtAI atUQ== 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=eLQE8WS8iCC0SxrZdGcZnab+S6ZUqfk+TEtvLV3dAT00c/N1ezPx0qvL+kFn/LO/nk 83rVllHLrFm6gt1xYVrIl4AeAv4/Tjv5RJhFZ/3y2f44HLToerY/o6xjpW0eSfAfWvUG sCavztwAwy6lppOkLIQ5ZtKp8rBnh8fgtqcJz7eyAIFNEzPmdZ7sBG6Tm/FQh5KOJjBa o3DvasECOZALNFdc28x9Bze4kLG+QtIRPe7nfkv6nx+AuqXmAv4mc36Zq36wXWajeIIl GQ0qqgGdcA+TkYhIMUuRMLQZCJ1bP9Djo4WZ33sH6yd6jhwb0a68MJTWbKgKJEUDb7vg fo6g== X-Gm-Message-State: AElRT7Ha2ZG6zUfUOy48RZINrdyHSTcibZ5blX9CAyQHObiUK6GMktj3 ZVw6TW91/IzSNwMPAt78mJ/nqWSqZ38= X-Google-Smtp-Source: AG47ELsRPIBj+Ua5+++f/xbOLKehNVEhli784xjxlQKAxmP4mZAP8puNTwMM8a9m4hocQKZSoxMMOA== X-Received: by 2002:a19:dd4c:: with SMTP id u73-v6mr4623163lfg.145.1520844144768; Mon, 12 Mar 2018 01:42:24 -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 t21sm1549933ljd.55.2018.03.12.01.42.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 01:42:24 -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: Mon, 12 Mar 2018 09:42:05 +0100 Message-Id: <1520844132-29969-2-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520844132-29969-1-git-send-email-tdu@semihalf.com> References: <1519222460-14605-1-git-send-email-tdu@semihalf.com> <1520844132-29969-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v2 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: Mon, 12 Mar 2018 08:42:25 -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