From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id F1570187 for ; Mon, 30 Apr 2018 16:42:53 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id o2-v6so5375995wrj.13 for ; Mon, 30 Apr 2018 07:42:53 -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=xcp4y/IT6Mml2cST9bxQBKjyvw3op1rtWiWNuczJchU=; b=FASTvMXiEtu2D5EJWpGbKa31VBCwwgC2/AH8+dLaMs70xyZ3p6u6Q0jA/8rV3vdcRJ O1HONJ1B313qA+ah+wGyUDK/x7vO9s9ln5a6E44QmtSV+0J+9pdpBcSF20r6lBRN6aij X+Bh0n3Gy+gIHAUOoXgspXbCvcgwHthkcGvcdWi4CN1RHpaUoCjr6MK2aJHgpt5cWNzM XFNjTqtLL4wjbguFTUPvf3HfjIMnby04A31dUQ6AB0fYwepmSjRkkjt8iHcwt7JXjCPF w+7Xn7uN7WNpVk14UGvjPcojLOMTyjGp4+RTT8OKfvA7V/0MpAt8iRMThmllu5iqiun/ w9ig== 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=xcp4y/IT6Mml2cST9bxQBKjyvw3op1rtWiWNuczJchU=; b=bGdwb3FrcZD0KNqV5Z1nQDbMyaDur9h0swlOVvpDoKxKfOPRt2PD0c6wkodsVSxRmP 4ao/ozjVfj8rerxzfy6ZPB2iAUBYCio/DgyWD9SVKYCDfaOSPIGyGUSu9K5/hyfec3fZ zl/UnffeUPdg7ILDlJ4+2kdT/4/ueGkGDQOLDDfJPKN3mc7stRmOt5G3DPA9JuetrFWC bBlCq3FdztGILy0EtAWAjgS9eEBnelGUZy+hTPnIRKGEVD8lEKbzpA4xsIp4AqJl+oVT qzw/R5lp62/z821fDo/Ishq6llD8JG90ApzDgO33ipiQTNzqF1LeDwF1ivH0yOeKywuj bD6g== X-Gm-Message-State: ALQs6tApkHoiKXSZbkGWS8u95fo730LLP2dMSMIM0NGnLmMI9YK2CeJ1 aG6SM2QM+NEPe0p/pxWaxLs= X-Google-Smtp-Source: AB8JxZo04zwdcB54ick/O6ngGWbub3YFKiqO0x+lzvNVZHDWsn/n180E/6b//XwzjQy23wzlYGLclQ== X-Received: by 2002:adf:afce:: with SMTP id y14-v6mr9561712wrd.249.1525099373685; Mon, 30 Apr 2018 07:42:53 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id u37-v6sm8526476wrb.53.2018.04.30.07.42.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:42:52 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Shreyansh Jain , dpdk stable Date: Mon, 30 Apr 2018 15:40:33 +0100 Message-Id: <20180430144223.18657-18-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/dpaa: fix array overrun' 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: Mon, 30 Apr 2018 14:42:54 -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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From f41ce0863e303f24b29ff7ecfbb0e37ca094fbc7 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 9 Apr 2018 15:52:46 +0530 Subject: [PATCH] net/dpaa: fix array overrun [ upstream commit e4f931cc6ef271e817ee4f6465b8048815255deb ] Coverity issue: 268342 Fixes: 62f53995caaf ("net/dpaa: add frame count based tail drop with CGR") Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 9b69ef456..800b75464 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -1105,10 +1105,10 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) dpaa_push_mode_max_queue = DPAA_MAX_PUSH_MODE_QUEUE; } - /* Each device can not have more than DPAA_PCD_FQID_MULTIPLIER RX + /* Each device can not have more than DPAA_MAX_NUM_PCD_QUEUES RX * queues. */ - if (num_rx_fqs <= 0 || num_rx_fqs > DPAA_PCD_FQID_MULTIPLIER) { + if (num_rx_fqs <= 0 || num_rx_fqs > DPAA_MAX_NUM_PCD_QUEUES) { DPAA_PMD_ERR("Invalid number of RX queues\n"); return -EINVAL; } -- 2.14.2