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 96AA8A0093 for ; Wed, 9 Mar 2022 12:03:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91D94410F3; Wed, 9 Mar 2022 12:03:29 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by mails.dpdk.org (Postfix) with ESMTP id 1BB7C410F3 for ; Wed, 9 Mar 2022 12:03:29 +0100 (CET) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id B06C63F616 for ; Wed, 9 Mar 2022 11:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646823808; bh=xtd0xS6OytAYgc5YpxC2RvFn7onZxJmMdCCJtaQETAE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PjCjiMk3ouGBENjmxtoiZP8t1ejs6WdXGNXLjht7Uz2jY+mFOFRn6TYSfWku+DpaZ q/Nq4tpbAUPs8yv3EKgrYxf5pd39Ps/B5rpObuxMxYy3HNnpLsBLB5usQHCQb4Saqo lLkMqpCNpaWCdTX+4pn2z+ekk6v4akDl/bjMPHg1dPy7n9ZuBAKtyzBg6peX2jrNCe vjdXKzS5RQp2mKIIr4AjP5/UfGz2uKCEiWCbtTLCP8Yc+s5p8CR/cByUTN0SQieJs+ 93niSqkFll0TSzXQ1f9t8LsWieFrYiiSZ9yHKTBjsLjrcQgZDcvc2p1eYdXD3Y5SQl xGy1ErH5Ek7mw== Received: by mail-ed1-f71.google.com with SMTP id l8-20020a056402028800b0041636072ef0so1073918edv.13 for ; Wed, 09 Mar 2022 03:03:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xtd0xS6OytAYgc5YpxC2RvFn7onZxJmMdCCJtaQETAE=; b=tuzYvPCzb58gRj6T0+7h6ms0GtsxxRx30S/QL1aUUiSsb0S3W7IExgS7z9iM3rWYxB KRgTsILDqPKoqmL9kx/PyTLSoV5sz+izF1Np+shLnGBZ7ZMMx/eCrHpjN6A8hJ6laOgq iks3jc60qTPhPd5x94xvWKGuyy5FoOuZvREUb7fEbnG9kEvfLwS/5DRFzDRxZ/DdSw58 pYGFURBxm7maVHGaI9rLj9fKo6uWDofYP/xqVBs+qcWTFps0eMwXt2F7X0z/50a/e7X9 XMirY2l+VxAFDHN5p+cHwrFUQ/G0rNm3l0SxINzMcIITJvM041PhpEbCJHGab0wE+8cu sD4w== X-Gm-Message-State: AOAM533m3dNQ9dqCGQZwhaOZeiZ6h1xlloWnChZ+zwhOHRyYO7BK1wCN rmol7KUWGOwYZDb6oa1bvZ/SO92erGwQlDmlHq2cDoV02i37+7wiDo0eltGFv4bdyzZgxZX8JtK no9hy3iaV/KviECgkgkMkE41A X-Received: by 2002:a05:6402:40c4:b0:416:3e66:1825 with SMTP id z4-20020a05640240c400b004163e661825mr15508659edb.284.1646823806672; Wed, 09 Mar 2022 03:03:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo+PfcPy6xArqg3r5GtrYYInnv8pDXxJOwqSqHXdfQ+FuyPPQMrr6uuuYMjdelyPo4aPXrJQ== X-Received: by 2002:a05:6402:40c4:b0:416:3e66:1825 with SMTP id z4-20020a05640240c400b004163e661825mr15508641edb.284.1646823806446; Wed, 09 Mar 2022 03:03:26 -0800 (PST) Received: from localhost.localdomain (068-133-067-156.ip-addr.inexio.net. [156.67.133.68]) by smtp.gmail.com with ESMTPSA id c1-20020a170906762100b006d00ae72b0csm568601ejn.221.2022.03.09.03.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 03:03:26 -0800 (PST) From: christian.ehrhardt@canonical.com To: Wei Huang Cc: Tianfei Zhang , dpdk stable Subject: patch 'raw/ifpga: fix variable initialization in probing' has been queued to stable release 19.11.12 Date: Wed, 9 Mar 2022 12:01:11 +0100 Message-Id: <20220309110116.1295395-40-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309110116.1295395-1-christian.ehrhardt@canonical.com> References: <20220309110116.1295395-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 19.11.12 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/11/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/4e71915c990b5694fe6bb4b8fb1dc0093d3a6f2d Thanks. Christian Ehrhardt --- >From 4e71915c990b5694fe6bb4b8fb1dc0093d3a6f2d Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Mon, 21 Feb 2022 02:52:22 -0500 Subject: [PATCH] raw/ifpga: fix variable initialization in probing [ upstream commit aae56ac43bcb6b605df8435be2ff6f07788fb1cf ] Scalar variable sub_brg_bdf may be used uninitialized in function ifpga_rawdev_fill_info(). It is initialized now in this fix. Coverity issue: 375805 Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Signed-off-by: Wei Huang Acked-by: Tianfei Zhang --- drivers/raw/ifpga/ifpga_rawdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c index 0c5392d082..73804336f7 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -223,7 +223,7 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev, char dir[1024] = "/sys/devices/"; char *c; int ret; - char sub_brg_bdf[4][16]; + char sub_brg_bdf[4][16] = {{0}}; int point; DIR *dp = NULL; struct dirent *entry; -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-09 11:57:45.458364662 +0100 +++ 0040-raw-ifpga-fix-variable-initialization-in-probing.patch 2022-03-09 11:57:43.420938557 +0100 @@ -1 +1 @@ -From aae56ac43bcb6b605df8435be2ff6f07788fb1cf Mon Sep 17 00:00:00 2001 +From 4e71915c990b5694fe6bb4b8fb1dc0093d3a6f2d Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit aae56ac43bcb6b605df8435be2ff6f07788fb1cf ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index b73512d3ad..6beecb710a 100644 +index 0c5392d082..73804336f7 100644 @@ -23 +24 @@ -@@ -216,7 +216,7 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev, +@@ -223,7 +223,7 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev,