From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 19A8A1B1B6 for ; Wed, 24 Jan 2018 16:37:28 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B1DB0223B5; Wed, 24 Jan 2018 10:37:27 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=YjtbQfwVc3ntXCThW OKNJp0Vfnb5boFllzumQrg9XLs=; b=YLK4wn8VlBf0xt1nyPjErM0xWjSmFEAu0 cje5oEqJE0vN6BOSn3WBk/WKhr+NTVTWDr2EjIzQIw1/lhMlb5HF5PEz5TyIqOh2 0Q7HavoXI0rgftBZCjoLeq9ufDZ+9aCSWG7f8G01jUFH2dsK2a0OBEzyyXUy2yuC XCVGL85nT+MHaHcRcELSzx6tY96Y5BB2zo01hOqItUu0kmw8fJxz9CvuwY3fpTo3 sb9k2qEWm2SmUl0IOZOrrv/jWfgVE4o5aOIDTxuOV9eGEYcH1tI4nL9yTGp7P6np gMg7f7Q2D+bxsDEqusvlRt08JaIHudqpL4GiNgCB9W0oRTj7LOwpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=YjtbQfwVc3ntXCThWOKNJp0Vfnb5boFllzumQrg9XLs=; b=nwuw/tHP FAvZMO0Z4/4L75CXi/Q6Q//xuFkqUlU4xcIz8VKDBqfe8OzgRAlV3xG5i7d6qnPK w4hHalE8M13GNoUd1FfHRHK2uk7hhfB8VvTkrYCOCA+/IOgUzKHvdfGpPj9cY7gj 7ItYtxLbn7oshhes87C6q6WQhlBVaAw0LQTFYIYo01E/iC/FfHCMF/GzUuWGYkP8 IEWqCkEjAUjp8k4Yn5wHOBPS1Ep7a6OPtjv6qd/UAh0GAZRIge6Ska8Yl2i7FGEP SyX2v1mYW3cl+sAcVgtY9NvW2z7TKCWU4qW1SZ2sRhkk+dOaPlSeVvagpaoohxS5 xMiLt4gAbp5cOA== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id EF7337E3DB; Wed, 24 Jan 2018 10:37:25 -0500 (EST) From: Yuanhan Liu To: Matej Vido Cc: dpdk stable Date: Wed, 24 Jan 2018 23:31:45 +0800 Message-Id: <1516808026-25523-37-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/szedata2: fix check of mmap return value' has been queued to LTS release 17.11.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: Wed, 24 Jan 2018 15:37:28 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From f23f5e9f683c982ab7c75d8ec6752de715fd94cc Mon Sep 17 00:00:00 2001 From: Matej Vido Date: Thu, 7 Dec 2017 15:54:42 +0100 Subject: [PATCH] net/szedata2: fix check of mmap return value [ upstream commit a648d49e78fdbc88952903a736a9a57d6353eb43 ] Fixes: 9eddbdb4b094 ("szedata2: support link state operations") Signed-off-by: Matej Vido --- drivers/net/szedata2/rte_eth_szedata2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index 74f151c..af0580a 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1553,7 +1553,7 @@ rte_szedata2_eth_dev_init(struct rte_eth_dev *dev) pci_dev->mem_resource[PCI_RESOURCE_NUMBER].len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); close(fd); - if (pci_resource_ptr == NULL) { + if (pci_resource_ptr == MAP_FAILED) { RTE_LOG(ERR, PMD, "Could not mmap file %s (fd = %d)\n", rsc_filename, fd); return -EINVAL; -- 2.7.4