From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 590EB2C8 for ; Wed, 23 May 2018 14:11:10 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id j4-v6so8370260wme.1 for ; Wed, 23 May 2018 05:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yJ7PUzMkX4jfw+DocU4A/oflwfmAOsJtdoD4wIkrO5s=; b=YuvYfiUP8NRr6szuT2xMIKdSMSE3qiWc5VSboul0sknuqONebY1Ftt2gng8zC/zLep bI2G6YyKsF4w+h2W0XkgjPLfYny+n71aIg8YFT6pmJVO6e2B40M81X9UsKGR0P3z88/k JdX2rOtH2Od/hWy//6TNgcoR2eVd0Pnitg44fzS1eGMXPsOYLY7gXJ9b2PXIfwWkAq61 3uh9TSKYkcZIo8WEFwqhHx+UNEjjbTCF/2svVkBtyUhkGbYAP6YNAkDUeFqoNhMMvt3s B4egBmqdWLsKqpYb+E8OVluN6uiFAEhUMEVuIJ2CoVCQ5QHffwaPVCzWJC+RQNxXomEG 1fTQ== 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=yJ7PUzMkX4jfw+DocU4A/oflwfmAOsJtdoD4wIkrO5s=; b=ldY5mbX89XMGPS8EGfO8WKGEHrkwbmDKvSD+6h0TUPwUVxAV4O8u3AzReVGJJnPdzC G6s8t6DvhqwLF86B2DBdVEdpusjSQiTqdFNSXY0FfswxdLiUgkbsfothCfV3nogqhQ9t zSbTfYW0LusLiO9nrb71fOVMjyh+yxjX8sW0XDFKfUXGxmWwgLu/QQoYCHRpLWP2kxkt x8/8Mxevxgdc0YYjWwGHxWXxGiWgGOigPU41/IJ/Ms7HyvLog6pBE1o0OQMBtWaHG/1S QE6fpVQcN3pQF2gxNr+29kNXEd7y+3Bm1vX/ve3IY+RZslb3VfZLBmhLlTwS/kflM4gO 7eHQ== X-Gm-Message-State: ALKqPwdwRP5vFRPMxK4vZGfge8aXJV4Y1Zk7TLRZKeo0XYF/5l2fbQSU 2awE1frkHLHc2Y9XRzD7Pl0YONnnkug= X-Google-Smtp-Source: AB8JxZqf8zwRGkfRL+5sSdfCCf5MUeEaufLQDQR23rOPAiTNxCTDUKCF+PVw3BqXab/vzFWGO0B9Sg== X-Received: by 2002:a1c:24c4:: with SMTP id k187-v6mr3913761wmk.116.1527077470064; Wed, 23 May 2018 05:11:10 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id u89-v6sm2534359wma.4.2018.05.23.05.11.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:11:09 -0700 (PDT) From: luca.boccassi@gmail.com To: Kamil Chalupnik Cc: Amr Mokhtar , dpdk stable Date: Wed, 23 May 2018 13:09:44 +0100 Message-Id: <20180523121010.8385-33-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'app/bbdev: fix unchecked return value' has been queued to stable release 18.02.2 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, 23 May 2018 12:11:10 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 710ef769b6258f6917adfe35f2a0dfdfd56f1253 Mon Sep 17 00:00:00 2001 From: Kamil Chalupnik Date: Wed, 16 May 2018 15:57:14 +0200 Subject: [PATCH] app/bbdev: fix unchecked return value [ upstream commit b1bc4217fd880cd89a6dae78b8aeb90d130854d9 ] Fixing CHECKED_RETURN issue by checking values returned by rte_bbdev_dec_op_alloc_bulk and rte_bbdev_enc_op_alloc_bulk functions. Coverity issue: 279447, 279456 Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev") Signed-off-by: Kamil Chalupnik Acked-by: Amr Mokhtar --- app/test-bbdev/test_bbdev_perf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 00f3b085f..b912a4ea2 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -1667,7 +1667,9 @@ operation_latency_test_dec(struct rte_mempool *mempool, if (unlikely(num_to_process - dequeued < burst_sz)) burst_sz = num_to_process - dequeued; - rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + TEST_ASSERT_SUCCESS(ret, + "rte_bbdev_dec_op_alloc_bulk() failed"); if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_dec_op(ops_enq, burst_sz, dequeued, bufs->inputs, @@ -1729,7 +1731,9 @@ operation_latency_test_enc(struct rte_mempool *mempool, if (unlikely(num_to_process - dequeued < burst_sz)) burst_sz = num_to_process - dequeued; - rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz); + ret = rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz); + TEST_ASSERT_SUCCESS(ret, + "rte_bbdev_enc_op_alloc_bulk() failed"); if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_enc_op(ops_enq, burst_sz, dequeued, bufs->inputs, -- 2.14.2