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 DA95E43CAE; Thu, 14 Mar 2024 08:40:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D32E40297; Thu, 14 Mar 2024 08:40:47 +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 A6366400D5 for ; Thu, 14 Mar 2024 08:40:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FLvZeO+dyhgmjHm47qEub/6ykY1Qj2pl6/lYp1kZTpdCV8LuszQ1jbM5aI1llc01etUhYzJqXtuLyufKte+0dTIrcqh41dw0n9Ck+f7atYLkqPwHOLAOTUtu3dNPFEttJddCf3BJngBXZ/3k/M2QZUAzaFsgeOk6M2jhFw/ZCVxxT7MxCoAauuFX0rcLdVTSDkZumlO+Lkl+ssYyK5ufPHTehRILrlBsGkE6MewbXglpCSFt5Ldq9mDhKzvp3ZEis/Vtybtn+jy+JXKbK9atvUXHxJger+hEuvPvzJfLxI+ntWsGerY/uRBYQv0V407JQ6HpnKYuHbSJ+BdE5uo5uQ== 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=iMa9a5bG+YA68sTRDsv3m+yoYT1ZbtTcwvVjFX7EA5o=; b=WSydjgaMQBk8R8TZ8xkqTHKEjuNPqkP6zK4NqpTc0WTgl5cEZQjHR2qosGLl9YrhcfAwbeOF+jL0AVV/bC9IK3BhtOvMLlzCsN50mHuxk4YIrCq9fQPO7hqQ0txG099n/Mdc7xQN6tFa7H2n/Qc79mENfgM09zqRSJWadQImFX2MYZYki+ZDuR6+ACqgRIKRtBdSNyr7iq0tUYeOrT5rBL85jPdSp8EkTNKxdH+AHRbaW1iNsaHwXG29TagCdi4AwX5kzoyKOyiDf65uHPr91btRkK2TEi0RfL+mQK0IS82buoN4QY/HJR8w073l1aZ8+F9zgh1eGl24/dDbYwkv5A== 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=iMa9a5bG+YA68sTRDsv3m+yoYT1ZbtTcwvVjFX7EA5o=; b=pkUvq2RFXRPcgnfWusCuQmEdzzGpuVT51d1orm88R/TEJ3GdtyXkHFVWv0axVhzhYXGVmViAEyISop2PrT+0jtP2bhi/f5UN9qBS92NC1Mab+NlA5/GhUvQ1vcJdTfvSG79NLJuvipMkBpjZQ5W4FiSDFQvvZkVdJJuPnLq7Xjw= 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 BY5PR13MB3617.namprd13.prod.outlook.com (2603:10b6:a03:21b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Thu, 14 Mar 2024 07:40:43 +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:40:42 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 0/8] fix some coverity issues Date: Thu, 14 Mar 2024 15:40:16 +0800 Message-Id: <20240314074024.3199555-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240314070536.3169210-1-chaoyong.he@corigine.com> References: <20240314070536.3169210-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR11CA0107.namprd11.prod.outlook.com (2603:10b6:a03:f4::48) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BY5PR13MB3617:EE_ X-MS-Office365-Filtering-Correlation-Id: 8690d92e-3bf6-408e-e005-08dc43fa0d67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 11eussg7ixV6pCIpiOq8Xp5itJ485KQAfVMwNW9VBYIzbFsGCLKk5oLYlSSWvWB9IZUmR1/mTR4/jaljZ7Ra4FsJ4h+jQPZu+t5s/llojSA3xTZWkRel4QtiQH4EortHj89XX/DcDcopGYW91mVw9o+u9W9KfXsvr7ZJz7+vEmYp5wl8YcU1/PWVXwWJbXlxvJLz5gp5rOhjIOwucIb6QPRb+lgzjPq1qY8xuahl862VSrc1rAGehxNlAvFWzsUV8GjxMXgHf8Mzt0I+96WeFKiZt3GDwJQCV+DBQ1WlqXy6E1Ha5uA2TPyCCIegJlRzgR5WvJaaFksHGoF2gmA6fWqvFuKnqXGzaDU5+7qLz7f3Pqp5tQGZO3e50ZiAvD1KG7a5aRg7QzKED4sf/7N4L3Hk20AVaqqO6Fk6CP3YpzP0lMPhwBoC7bWzsB5LBZr3Kt/GRwwJlGeEckb6PbBHrLnRo2zYLfA2wz4vDp8Q2h/fn45oVALPyoVhCIKKLui7FMQ5kwDrTxDu+PzV8hRxB+N6uh0WpFfNOV7QSd0JHB4PvVCNYz474ok6gOYlgBpXe9E6hnDvf9jQbU7qs6a9uMIxKz3JAceRXaTdiW2cAEdeffWf4w2e2wIWrrcN35/LS+X7dfFjx8zE/4mTORs5BEa2cBppD73ePeM/44HhfBawHOUeMhw906MUfaaiSsR5nbW4FjWZbYCdBrsamGABZQ== 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)(1800799015)(52116005)(376005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?IcCi+aEbYJ/jvsZ94dbzoD1XklM1N8pSp3bow0wWXbXNJ6jT0W0kV1a5JQve?= =?us-ascii?Q?iHhtACFlP5+w1KMUCKauzxmPf2fWwrlaaKVVD+r7K3idfY78sHtdOuRJ03qf?= =?us-ascii?Q?mbZhrKU1ktitt4O8+chq6nnWrnDQ/+Z85JP1P4DIJmJCBhZdwhENwMrRaf41?= =?us-ascii?Q?jFur/+U5/Y7yHa/52jk6EDxzCj6gwKuRA5U4LrSvfqUGlY0SIu9cSfjciGT2?= =?us-ascii?Q?PrLOnlTH8LXgSxFzFbqModqcaNoLgh17hQonlJEWKGzXnSyBmZiLdvWEbk+z?= =?us-ascii?Q?se2BHvTsCGWWQ/v9fLwyWV06A89qcvZdP1fAg8gUNT4VhFQoKJcaMLOFWJl1?= =?us-ascii?Q?gyZB9Cu2spUcc3SNauinwsEkwLFrS6o6zRUWy+VXBjOTJH7t4wUQwbuiNW/J?= =?us-ascii?Q?AqlA/ESxV8f+tOwDKs10PDwgJIeJ8IElszmqeGrAg6kc3iKwGVlHOBdjLldF?= =?us-ascii?Q?y00l6XYciUrvSeT9s7L4/kGpoWb75+HBwXeiQBXiP7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0nE62BWvqqtinTG9F22rXg8jjoh0BjR6VGZR8VQWmAQCv4?= =?us-ascii?Q?N13pHPI1G9DDQw6Wp7bOrGNzt9oW0I+g8nSVZrmezirdbObqueiuEMS1Ulfo?= =?us-ascii?Q?OdJHfdlzNV0n5PsRAGt4lioSOkq2pvo/b1lgOYCwRkHRUlCpL3IpcMt+an3c?= =?us-ascii?Q?ZwHpbMPdU7iaRgpGas/gQqYBl3jX+HVjKfW3yJejtmkmF6G3h18gqHXlqeE8?= =?us-ascii?Q?/g=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8690d92e-3bf6-408e-e005-08dc43fa0d67 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:40:42.8800 (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: d/UR6sesZT3TrBUcavEpO3d8f12MPIxT7oMp019o/2wBi2jSZhCbisLpJAuPqBRg6q6YdfeCqbZEhO/4HnqcRXOE/6Y6s67D6RNJhAqW+qQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR13MB3617 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 --- v2: * Fix one imported uninitialized pointer problem. --- 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 | 19 +++++++++++++------ drivers/net/nfp/nfpcore/nfp_sync.c | 3 ++- 6 files changed, 33 insertions(+), 13 deletions(-) -- 2.39.1