From patchwork Mon Jul 10 17:07:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 129421 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93C5142E3C; Mon, 10 Jul 2023 19:08:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26B7C40698; Mon, 10 Jul 2023 19:08:05 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 0DA7D40150 for ; Mon, 10 Jul 2023 19:08:03 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-666eba6f3d6so2074550b3a.3 for ; Mon, 10 Jul 2023 10:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1689008883; x=1691600883; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FxTff2uCHMSkNcQBnCBc2dFQl+SNS6D3pKEShuVCrVk=; b=EENVtR01DzjhX62s1pNj5fFP8U/HmDirABnTCK+rEglacVo4BBEQETpOJTFhDkEfqj 9I9XdJsDngxSMk8a+MVc/KMi59Cqdukk/U+gHqjJz2mVUDms2xvS8AKpj0vcO86oBIod khJNYRLWEmBOvL4+x/RiAz0HoPeOBHVnraIgQaY5SLml980jl8k8JM5UDevbl6CqK+va oSD/PqIYbccyqgWtsLQSp5dXmXo3OmMli/hAWghqPu6WoEqfyG3tMO/Bx9B8th+90cxS EINZ3UWtBsy3bOrfhtx0hmReh0PAQJhPZWk2zmuR3Ztrgy3nbtioqEzHlrO4VYBxcgPn dx0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689008883; x=1691600883; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FxTff2uCHMSkNcQBnCBc2dFQl+SNS6D3pKEShuVCrVk=; b=WLsBsqOXCgg+6LvAcV8k3bF+zaFYTOQp0XdHrUv6SuiSLCHcqLpiJ+EXZ07lA1U2uM PBoKaHejcqFnGwIuXVhSoS4K6ZD5RtCSzVSgeOGQ3+/J5KpU6iKXzDSAcroh3t+NVe2+ GzEg/DilZCbCD3OoWDXfrcePUlMLXf4RpeSCDsAxV2KbCKWQFF4tNU9chet2/Jxd0KsM ROCNyk025owQyrY2xNCQ+3NzYtuSqD7EXl/DDh6LcyZ4J//e4DAHAilrri12OcgN5Iy3 zRBxqI+vSPmQ0aopp3hlspDWIlTAN+SphulDJz3ZbFyd4Tb9uy72lERBhc4PACv1OHuk watw== X-Gm-Message-State: ABy/qLbGWsZFk6xXxe30G9UOrjoEKkf67RL1HFqqgmiNl2ixVr3DBQEK lBLQNH9vK13XfiTn8bz/6C4gHFMhJvzysn/Q9MjF6A== X-Google-Smtp-Source: APBJJlGKMoP/hnKHLOrfIzJoTTkJkKoK5FIUz/n+KYmZ8Odr398XfmwkYKBzCo/xQIWVfzNxOCegfg== X-Received: by 2002:a05:6a21:900c:b0:12d:130c:3ee3 with SMTP id tq12-20020a056a21900c00b0012d130c3ee3mr8452237pzb.44.1689008882765; Mon, 10 Jul 2023 10:08:02 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id q17-20020a62e111000000b00682ed27f99dsm51799pfh.46.2023.07.10.10.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 10:08:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 0/5] fixes for problems found by codeql analyzer Date: Mon, 10 Jul 2023 10:07:55 -0700 Message-Id: <20230710170800.12478-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230120044140.95975-1-okaya@kernel.org> References: <20230120044140.95975-1-okaya@kernel.org> MIME-Version: 1.0 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 CodeQL is an analyzer (like Coverity) for static analysis https://codeql.github.com/ Followup from earlier set from Sinan. Rebased to main and consolidated for easier review Sinan Kaya (4): ethdev: check return result of rte_eth_dev_info_get memzone: check result of rte_fbarray_get and malloc_elem_from_data malloc: codeql fixes bus/vdev: check result of rte_vdev_device_name Stephen Hemminger (1): mailmap: add Sinan .mailmap | 1 + lib/eal/common/eal_common_memalloc.c | 5 ++++- lib/eal/common/eal_common_memzone.c | 10 +++++++++- lib/eal/common/malloc_elem.c | 14 +++++++++++--- lib/eal/common/malloc_heap.c | 9 ++++++++- lib/ethdev/ethdev_vdev.h | 2 ++ lib/ethdev/rte_class_eth.c | 4 +++- 7 files changed, 38 insertions(+), 7 deletions(-)