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 293B443332; Wed, 15 Nov 2023 04:23:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99C7A40294; Wed, 15 Nov 2023 04:23:35 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2138.outbound.protection.outlook.com [40.107.223.138]) by mails.dpdk.org (Postfix) with ESMTP id 5AA3A4027B for ; Wed, 15 Nov 2023 04:23:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HBweRG6LQuaQEBj2d8O3eP3DpCmNOzo4zUsHX5rHkv80jy1XFlPj98z1ayKpaQILlg80YiHZm/UhPQy4LjdMU2kT6qy2G0j9Oqeqwcv9OZXw/UPtA0MyXoz/xMoChbs+fgCWG5QrFzCEYiOn/bBx+GzWH4pJ23PD05vpu4dx2LFkUXeh5Np4xIbQGDMI2KHRaXZHxphHeDV1TRiuizeBt/XHN4OTostpu0sUyandm9BLeH9XQx9IhqJFAAuQMLjYr6WTKlLy0qqEyrsZduO/x3X2sHVXpFNJvRKUSKFwdmMQvZbpPpQU6Zy/Cbb85i6nJh2UHxFR36wVFk6yUrGR1A== 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=eEKH9N2vbHWlE7eoDWc8giv5DVluTH5w0OBfLlf0NBc=; b=AZb2xFazIHNQhEOTxENhIGWddLgQd0/936N0/dmGARXOrUKZ0HERGQSltt+M1L7oVia3Ju0c3L3khkxqlzWPKvws10X+qY9YKovnmqbGPnDrkPhEuLr1PjKVprKvwbLV766tGXciRvFUF1TdDrGyIfNSKG//BQ1V4yOLPGH9n5vk89XUrPcvLuDzWws3hkAJwDwPJByAdfEqjrvuNaY0KIga2W+gMWfeanUiMi9kPgg6Wb+uHiXacIz6m3b+y5kKj4HM3IbupZJ15Oesir1ge7HFa19iJ5jlt9cFZiv7NUJ4M6hgn2GybjchN3kL7PBsGKpv2awBieTqx3gexCCBTg== 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=eEKH9N2vbHWlE7eoDWc8giv5DVluTH5w0OBfLlf0NBc=; b=nnYrqzHFmK8HlT7LZWXoBFdYF/LaDn7a1EL3t9fKnJLyzOqIpiMEy5inlw4BF0beFrNmxG+jVL6EwXZaaUqsUoNMivG5GnUt1a9mSgWiZ9Ct9w4n1EcIE6TZWzqo5sx5zRihPOqpDm2ltioAbaNAvoK3ftnyY/PPwhrUMpBY3EQ= 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 CO3PR13MB5719.namprd13.prod.outlook.com (2603:10b6:303:171::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.17; Wed, 15 Nov 2023 03:23:30 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::45b3:d83c:cff2:4a1b]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::45b3:d83c:cff2:4a1b%6]) with mapi id 15.20.6977.029; Wed, 15 Nov 2023 03:23:30 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/5] fix coverity issues Date: Wed, 15 Nov 2023 11:23:05 +0800 Message-Id: <20231115032310.756221-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH7PR10CA0023.namprd10.prod.outlook.com (2603:10b6:510:23d::21) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO3PR13MB5719:EE_ X-MS-Office365-Filtering-Correlation-Id: 89b6905a-7900-4c9d-217c-08dbe58a3d13 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rVk1g2Hw1oB4Jxc6ioKJQFRlC97pn8OQg9xbJ8CJX6iKKaAE7RrXAFPfaX3dVE5DSjHYa2CFC0H/ProBG7u6FTYVuMVVBDkSOmFkbYAi7NFD3obT0Y/nC80jx1hiHBC9VOwblbNxSwG5D/hhALzNQ9pV+3c9idkw3wt9lt8FcndZ9x4VFHRRsbpmHa2nrutG4d70RW6y21MWSU7hKIau2WMUcDUcQo5zRbyVLVLoNImxQi4NX/hiJ4BASi+94SqxXQlvEIGL4s5wu+V5nv14vXXGR3TrqPA65DJ0RE6WlJQodTS1Eetcchd1ny8lQ07cvpzaw/S29XHXVhSk0MZykbcSVtGEUgSCJk4nV2Dmvx55fcpG0bra/bJT6zkFufBI0giwxVo4qrUR771HW/wTp2JstyPk+x674+oLKt/WeZcLW9LBPhIIar4DF5M0fHHJQ710KvvhIZuJNBSCTQydW4Q8rospBIkTOKDz3jrrea9EJty2C3Cg39sH7FdQKidIK95RbHikpS/AHQWEWiG0SUfZJAcULrbL2FOmxxKg85bwaG9XNduYJHqI4MLE+lGHsACy75F0u1Lft1A5GNnlbpVugtWotVvP4wbEWiJdVl9gzrt3C25U8ZvI7vkuZiC/FNgEdYjzAWmhGpPnYZ9XY4kdVjof08smyhWI0ijuer0= 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)(396003)(136003)(39830400003)(366004)(346002)(376002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(2616005)(6512007)(1076003)(107886003)(26005)(6486002)(478600001)(36756003)(44832011)(8936002)(86362001)(4326008)(8676002)(5660300002)(41300700001)(4744005)(2906002)(66556008)(66476007)(66946007)(6916009)(316002)(38350700005)(6506007)(52116002)(6666004)(38100700002)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?k/5vRFtt+VKMmoaRqopV4DUDBgGWRzjwCXiIktYAxPm1Sb1DOsQVpA2j46x4?= =?us-ascii?Q?eHxiTXzwHqhYp1EvksH1DOpwzJt6Cod6pvKheWVU/tWe6w7iXPmFQYjx6Ew2?= =?us-ascii?Q?wWa45/d5mGDqD/+3z4j4tOrMI5R2AeGtMdsazz6D+4IUVX8TYqYqygspK6Zg?= =?us-ascii?Q?yYoxHlJPPPdM40Th0HYtVEd2ws13KKaE2fDoHQCJx/0BsMEjJPdF6K5XADja?= =?us-ascii?Q?GbEAj3qVns/wG7sHshE80+IzPU9GhBVB9f+RQEajM4syvbXrOY5cs3K5pONA?= =?us-ascii?Q?Yf+jrYbqzehM3b8RT3L6GcRLiq1cnSRx7oFgmyrqdBlRyidUIfHjJChaPp5a?= =?us-ascii?Q?uCZWUPunXShhiRW9tDNF2ylg+eW48yUtGB6PG63xu0T3CsdL2wAEdRSbr/SD?= =?us-ascii?Q?cmnqcmpPXDGs0kqToxkOCCRtQi6AUy9QcreucDv6h8icbIcoum2H/Ewn/GEG?= =?us-asc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4Q4bFH+QU/vmY30NYHZoo?= =?us-ascii?Q?cGGs92af+mvRcr4Ys/U56Hpfi05U0nOEUUesDz099R+aDFEyU/Nt6xHSjnRQ?= =?us-ascii?Q?Fx7ff7MAHC4xSWZK7uj5e1wmlmGiBuEmVsmmnbOyE3MNOP9551mVS3Mmt0+e?= =?us-ascii?Q?lUo87a7sxyCCaSUj7ANdf6E+dhTorMzcMz8CqLok5l0FHZzDjGE1uNQgE+Ow?= =?us-ascii?Q?wGhBhHf1cU69YbueewdLNtSUrEW12Kfj59OpQ2fQreY9SlpIFPaMG848KtmV?= =?us-ascii?Q?Zg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89b6905a-7900-4c9d-217c-08dbe58a3d13 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2023 03:23:30.0644 (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: oOo4RQU4tLnmyGTMVs6oS11PlzWSoIWkG5h0OxaFlHb9b2yvvU/wzlkgCVoJ55pbpoGwL+Kly0YinZkx8VcpjBp4dp1XDOTr7bgeTKLboho= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO3PR13MB5719 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 aims to fix some coverity issues: - Coverity issue 385406 - Coverity issue 385412 - Coverity issue 405351 - Coverity issue 405352 - Coverity issue 405356 Chaoyong He (5): vdpa/nfp: fix checking return value vdpa/nfp: fix integer handling issues common/nfp: fix integer handling issues net/nfp: fix integer shift problem net/nfp: fix null pointer dereferences drivers/common/nfp/nfp_common.c | 4 ++-- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 3 +++ drivers/net/nfp/nfpcore/nfp_target.c | 2 +- drivers/vdpa/nfp/nfp_vdpa.c | 4 +++- drivers/vdpa/nfp/nfp_vdpa_core.c | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) -- 2.39.1