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 8988043CAB; Thu, 14 Mar 2024 08:05:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74A8A40297; Thu, 14 Mar 2024 08:05:59 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by mails.dpdk.org (Postfix) with ESMTP id AC6CA400D5 for ; Thu, 14 Mar 2024 08:05:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RxeP8XyCONNbcXKcQG7IIdGyR6xv7KpHQn7sGD37oa9pIn8V5JbPSgoHuTydKpheq0b9Gd6D5ikmNYPyn6Xw2nxFb+BA+1hQTkwvDfvWYX2c+q/cKEtj5XC+/QuBJaZ108etH97KobLa1aR7ckiJof9Pc0EnnsfwyIt3KTb9NyRQM7MKuKtfCP8oICP/Qc2NjNiCrEfEmur6Q2IL3jT5hYJHhIH3b0kkB2Nyo2VnhGa1tFu1LPwmGP18V/chW2VuNpAyPjADXYFWxxXEq2/1AU5fyGooU6lTY1ky18lw05yW7QH1BzQDqFkQpFmKqeTqxtR+ctuwilLT/hQvk2Cu0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1wwzhSSqieT98TQsYr8661cBbn3AJVM70VjKfAuvUCM=; b=i7IjdwrRrJgRqVJcZ9DBFCin7lE3ORYdQTgQjb7gLMWz3s6g4r6KVABbRGjpsrLzeuxkWC90vcsCIEs5oTo4tkAqIynTv/fJzMCAsn+adJq5fumzNOk49m0UCwc1Ipl790Eq44Afomeryk8W8mnIF6q6nFaLVwX2JANCQ4x3TwOih3H3/bfKT5FqtacYV5MFuUqnZkKAdkS9kG82cz1yLuyGDCL1HdqF6DY41aIvom2BwVmL4HkwRfrLP4lbC9nw6om8xh4FmPVinN8uC4oJXJke5kz/yEveh8yTpZUc4h6m4teN/2/chWJWXQcJCedIgzvKZyw1m23NRX9nA0X9Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1wwzhSSqieT98TQsYr8661cBbn3AJVM70VjKfAuvUCM=; b=qO8XnAmA5QO1FuCa0SmBNeNm0J/PPrjPNLldXczB4UjcdD+BZOrvxnkhn0SRs8eX5CcCL02ldIJDAi44Nl8V7+YpzoVkULOKM3hd47UpeRveqncXN03uQ0LBLpNzPV8WA1DKbYM7vrwPhFZN21915h/tYBSOt2MWpYRQ5lHBIss= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by MN2PR13MB3645.namprd13.prod.outlook.com (2603:10b6:208:1f0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20; Thu, 14 Mar 2024 07:05:55 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ec12:7411:559a:850e%5]) with mapi id 15.20.7362.035; Thu, 14 Mar 2024 07:05:55 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/8] fix some coverity issues Date: Thu, 14 Mar 2024 15:05:28 +0800 Message-Id: <20240314070536.3169210-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0191.apcprd06.prod.outlook.com (2603:1096:4:1::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MN2PR13MB3645:EE_ X-MS-Office365-Filtering-Correlation-Id: 36ac3c0c-25f0-41d6-55c4-08dc43f5313a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UW5ZtBGaNcoJnzK55JhAbfAC8HlKXfSnDDxel2Vq5JC4bq2yZ5uv8eDDtzmYw9MUILhAkgalCh/J/57tIm8e4u7ucyyCsY6e3y3bf0Z9hn3GQO6eKKdm1xFGYU4rar3Dtzj9xvQACwVWIfT6jXt2iE7Woj6StN3wUqjp1WpUaL0/yE13ly/Kouu6PN9xRx2FGXwehbinyS2wLal5G4cmcVhLe2Y32yROtdHX+cDYaCQewFm7WIF/crMcfEcSCPfYzSZzjLJyoeU9hbzawW3Ae4Rl14GE1F5LHMntFIuuzZFJT9FdN2QhE/MA/jb352l6KKlFRupiy1zpICh5UFTxlSDJJk+S28/8Kvs6Hc4j74GSm7wpo8iosqaYra9V5UKw89ijNt6uXUGEzttax0OU/+oYkOKYd1uNG8HOkUNPv8Be61f+T5sIqWHz7F0NiYsdDyf1WFFmWrID7UVu9ZI94Vq5bNMyEo03Nxtq1S/u/XPeFOsGye1tEjUw+k7s0gar44W5At5Hv0gniBpTBrnDZAE0ztn2b9xalHuygfUNawmDCVnFKAvJW+jKkUYGBiIhlELw3EHOM9OC07AGWPu52diycQNuSSwKi7JholOSG92m+F4CLms3fWjJIKwJnQh9PhkSblpmlq06xH9tqcu2WUu7fO2ZbqkfTBbB5TkZR0bG92ipWkgj3CaqeyMeBuugKgFPSGxUZ/f34XSfamiyMN8zr9ZOtL62IpkdqbcyBcE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(52116005)(1800799015)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ck38M1UoC5uV3RRWJKC6d9WAqnpLZ6KIVfgWf6wdov5d67JvooxpnJDTROU2?= =?us-ascii?Q?+djGSzbFROjVK0+Cfm1f87z3ue1PnwsMBke0CEYfx8YUJZNIhdXP2TZ1GXIo?= =?us-ascii?Q?CGN2T0a2s7/KW7w31mb4lXdBjATPfFcbYcEO77T8ENQeD3PFJHzmh95sT3fC?= =?us-ascii?Q?DAgYbt80l+W+TB14eK5tE3RlXd5LCpFlBZlh5vFFxgkDMqD6gtdj7tqyHndN?= =?us-ascii?Q?FK6YozDUNee6MfVwP+saKsvDXfmA4F3y+8thCvWnvYbkWIVVljmg4n2rQ7x0?= =?us-ascii?Q?S/ZcZ6XtSAeqKR7m/Prb4agJnT7jylr8OnEvY3w4CoWNo76tGX6WxE//HnPD?= =?us-ascii?Q?87aWbmGxuUayCf2rAnCMz01gVELJbMs0/jDhlewfXNIS745vCP4UGqwu6LcW?= =?us-ascii?Q?NqOM8Qppw0kMfDERVbNXGnA0qcO0pQkrZ4wK1YQQC+ptQRFt11+mBTReFsfY?= =?us-ascii?Q?OvZvc4NPunoeH/FNNllfqJn9PgeoNUH+CLXtM3uGq49KVmdO5qhazBXxC7d7?= =?us-ascii?Q?f7ubr9PGjnVIQTJ5DjAO9iD/z7FS+8zfG4+6zr8HZnbR3TZ5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fNfUcjcjijdTCGjRkuBIpac4xFqniyUA1apr?= =?us-ascii?Q?P3wcC/8vcrCQlsZRclhfu4eabQsHbZ8iwDeWPjIy3dnd0eqGGUNEuaOzS9bn?= =?us-ascii?Q?+pPQDC04vOsSga3mGwGtVxcNgnFJRdMH/u2DCj8vPkP8B291ws0XcRzv9eof?= =?us-ascii?Q?Bg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36ac3c0c-25f0-41d6-55c4-08dc43f5313a X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 07:05:55.4985 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HvuE0JMrdT6bfAKeHEg4RAemYKeBTpn77EvpFr6TbFQgPqqPNVlZ51kwBbSWW91b38yqyOYZ/+8rv1diMsAw/tJZhDYJpuH+m7UlKDk9elc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB3645 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 This patch series fix some coverity issues, includes: - 414936 - 414937 - 414938 - 414939 - 414941 - 414942 - 415042 - 415051 Chaoyong He (6): net/nfp: fix return value check net/nfp: fix string overflow net/nfp: fix unreachable control flow net/nfp: fix check return value net/nfp: fix unreachable loop flow net/nfp: fix null pointer dereference Peng Zhang (2): net/nfp: fix dereference after null check net/nfp: fix tainted scalar drivers/net/nfp/flower/nfp_flower.c | 3 ++- drivers/net/nfp/nfp_ethdev.c | 1 - drivers/net/nfp/nfp_net_flow.c | 11 ++++++++--- drivers/net/nfp/nfp_service.c | 9 ++++++++- drivers/net/nfp/nfpcore/nfp_elf.c | 17 ++++++++++++----- drivers/net/nfp/nfpcore/nfp_sync.c | 3 ++- 6 files changed, 32 insertions(+), 12 deletions(-) -- 2.39.1