From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BFF61A0548; Fri, 2 Apr 2021 04:58:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54C6A14107F; Fri, 2 Apr 2021 04:58:33 +0200 (CEST) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id D5A1E40F35 for ; Fri, 2 Apr 2021 04:58:29 +0200 (CEST) Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FBPnx1Tpgz1BFkk for ; Fri, 2 Apr 2021 10:56:21 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Fri, 2 Apr 2021 10:58:24 +0800 From: "Min Hu (Connor)" To: CC: Date: Fri, 2 Apr 2021 10:58:47 +0800 Message-ID: <1617332330-25936-1-git-send-email-humin29@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616830688-65506-1-git-send-email-humin29@huawei.com> References: <1616830688-65506-1-git-send-email-humin29@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v2 0/3] fix miss input validation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The validity verification of input parameters should be performed at API layer, not in the PMD. This set of patches fix miss input validation. --- v2: * Fixed mixes in ethdev header file and ethdev .c file. Chengchang Tang (3): ethdev: fix miss input validation in module EEPROM dump API ethdev: fix miss input validation when access reg info ethdev: fix miss input validation when access EEPROM info drivers/net/e1000/igb_ethdev.c | 3 --- drivers/net/hns3/hns3_regs.c | 5 ----- drivers/net/i40e/i40e_ethdev.c | 3 --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 4 ++-- drivers/net/octeontx2/otx2_ethdev_ops.c | 3 +-- lib/librte_ethdev/rte_ethdev.c | 10 ++++++++++ lib/librte_ethdev/rte_ethdev.h | 5 +++++ 8 files changed, 18 insertions(+), 18 deletions(-) -- 2.7.4