From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 3B5452B8B for ; Thu, 1 Feb 2018 10:49:53 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DD0DE20AAB; Thu, 1 Feb 2018 04:49:52 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:49:52 -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=fm2; bh=UaCo9Wz8uKi2a7x5C eaM+OFzyZoV/vxRfiOhhrqntDM=; b=sZcqUPNqI6DE5n2G6DkoURrSC1S+Bifyy YMHsmLlTbOGrvn2sgqN0NS3zO3Zbt8upD6Wy7k1zYEAP8dtipxyitPZunGmTup7Y AmuMQ9UILkUBBUOoZfuI7a0t+aVn0hc/ZFXZnkRt8VwWLFYj+4GDl6gpkrcx3geV +ougwlpDSMXON+jwG4Ucz4WdaEjdGjYlH8gb6MAKuWlJ2c59lK6l3Qu6PizDsWfw wc9/sWlcSLAlrjQWJJkGT3plzlCfOyh7g5IPnEUI1Dceej69fonN3h1ZPNEXSB6w ++Ojk3fESfaQcVTfrkOZzlGnVjN9Qvfw2j5trn66ApqANT8IrSAdg== 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=UaCo9Wz8uKi2a7x5CeaM+OFzyZoV/vxRfiOhhrqntDM=; b=PViNHTXS 5YWymXNxwtdRuczDCK8y9eAzDBS5YFuOTDaaz1ucKF+iIKc9H5JHvPxDH874Fceg r5+a5vKX4ZLVhGwZQXlQUW6NIGAYQDVvdkc0wWJusuEMDHY5NJHXH88GGnU6qlCZ 2kRMUE6h1Nm3Ee4wWtXBEe6eUmvzU+nomAgyOScrjG47EI7TQ7uXzbBq8thJyZEe APzle9/FIYFDLXiNsSlU0jWvSZYk0zCWyu3jq2ZoIFbTad2eSy6ulj/UzhbfIyPJ leNM/Lot7tdrZG+6Y7CQSsgj3tQU7eQ4jgNtii8WBcXCVZi0pmz9MQYQRQd2b+R5 Y8syILbzy12XkQ== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id A81B0240B6; Thu, 1 Feb 2018 04:49:51 -0500 (EST) From: Yuanhan Liu To: Radu Nicolau Cc: dpdk stable Date: Thu, 1 Feb 2018 17:47:59 +0800 Message-Id: <1517478479-12417-45-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'examples/bond: check mbuf allocation' 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: Thu, 01 Feb 2018 09:49:53 -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 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 3d2804be6e883ed31fe41dc79a840dbee96eb29a Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Wed, 24 Jan 2018 13:16:46 +0000 Subject: [PATCH] examples/bond: check mbuf allocation [ upstream commit 0bb76fc945e626941de2c6e881b69f4e4ef61478 ] Coverity issue: 257008 Fixes: cc7e8ae84faa ("examples/bond: add example application for link bonding mode 6") Signed-off-by: Radu Nicolau --- examples/bond/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/bond/main.c b/examples/bond/main.c index 2b2a916..4f533e2 100644 --- a/examples/bond/main.c +++ b/examples/bond/main.c @@ -446,6 +446,11 @@ static void cmd_obj_send_parsed(void *parsed_result, (BOND_IP_3 << 16) | (BOND_IP_4 << 24); created_pkt = rte_pktmbuf_alloc(mbuf_pool); + if (created_pkt == NULL) { + cmdline_printf(cl, "Failed to allocate mbuf\n"); + return; + } + pkt_size = sizeof(struct ether_hdr) + sizeof(struct arp_hdr); created_pkt->data_len = pkt_size; created_pkt->pkt_len = pkt_size; -- 2.7.4