From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 83E1F2C8 for ; Tue, 20 Jun 2017 13:36:56 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id d5so22250526pfe.1 for ; Tue, 20 Jun 2017 04:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z0IUoBzC8tnFDA3eZZRQrjpNjq0EKtf/NlbibIUSCrE=; b=Fob2OQwGeaQ99bNwE3AqlnfzTV0no+KN10EnvlJPFWcDX3DSehXEJXoNVUpQ9VCZ/1 rieaOtK5Wp/rucOMngrP7/Yk1RZ/2vVWJvP9gg1hRdZkjdWCnMA42k9OJM5e9WxeEG/8 9rvBb1n+jKSDmCbeq4ID0GiDNsLoJ1/fPvzjTYOXzTYNeydvDaqxBN5AZ31WN36PDDWs 6/d44sTZLmPnJn4B+iRcnI3QONIdRNqMZJtdEWfYCcWxLvnSS+CLOr0FV0bmDtMGaauc jYd13R5s8gBR3toxdcfbNxuM+e46Rsh8qwyoI157XZRebWrlAMVPt9S+wFd0eVoMUAy9 kCgQ== 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=Z0IUoBzC8tnFDA3eZZRQrjpNjq0EKtf/NlbibIUSCrE=; b=UGgeA2XQtCkoxi7pF0k92m+Z9z9SQWN40x+G1B194ctymuBV4L2GA06U0jVaiotuqH oXMA584oawW0XHJrLAJtiXqa9df5JfZovsLLuM8k+Sdg8ZKkswjqiv2TrjuZeqfqhJHO 0cGTiNPK17eaE+8Kd88fxfOOtJmWpoOc00UqtI1OBBAw+wolprs8Z/PPbNqbJq2PrjeL Lf46pI4IYA2IjB6qyBnYyBAm9fggAyNI2lS5BwKQ6M3zdKM8PddeyYEkXFkssnSRpL5S 2/Pj/G1dLdP+G3F6tEAKsQIJ1J/+tAueL1RTtesAEQ53IMkmxl2xP3duXnS/1YicK9cV fZUQ== X-Gm-Message-State: AKS2vOx9Cnzm6t66Q1UARMSWUx168si0yBjDaJi5eoOnED/adZLuN4J7 dXrgMDD38TdE4B+iB3bupg== X-Received: by 10.99.4.6 with SMTP id 6mr29705622pge.126.1497958615849; Tue, 20 Jun 2017 04:36:55 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.36.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:36:54 -0700 (PDT) From: Yuanhan Liu To: Chas Williams Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:23 +0800 Message-Id: <1497958550-13600-11-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/af_packet: handle possible null pointer' has been queued to stable release 17.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 11:36:56 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 97744a47120506c02f54be07cb6d845a68c6c85a Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Wed, 17 May 2017 14:03:33 -0400 Subject: [PATCH] net/af_packet: handle possible null pointer [ upstream commit 92656e96dda5ce01d16fc751149c2763f315e6e5 ] Fixes: 1b93c2aa81b4 ("net/af_packet: add interface name to internals") Signed-off-by: Chas Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 68de45c..dd77152 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -625,6 +625,8 @@ rte_pmd_init_internals(struct rte_vdev_device *dev, goto error_early; } (*internals)->if_name = strdup(pair->value); + if ((*internals)->if_name == NULL) + goto error_early; (*internals)->if_index = ifr.ifr_ifindex; if (ioctl(sockfd, SIOCGIFHWADDR, &ifr) == -1) { -- 2.7.4