Message ID | 20220517142234.11048-3-tim.gardner@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=ZyffVnsL; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L2dcy3ltHz9s2R for <incoming@patchwork.ozlabs.org>; Wed, 18 May 2022 00:22:58 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1nqy69-0006U5-2Z; Tue, 17 May 2022 14:22:53 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <tim.gardner@canonical.com>) id 1nqy62-0006RA-Jx for kernel-team@lists.ubuntu.com; Tue, 17 May 2022 14:22:46 +0000 Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (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 60C833F5F3 for <kernel-team@lists.ubuntu.com>; Tue, 17 May 2022 14:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1652797366; bh=kPhNgydh24aDTbe+2ZBY1zZaxVUvO0ksLo+Olj/A0qc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZyffVnsLLZrS28L3aHwjxy+7moWaWmiGSTWcZSkgak92wBPGMRZSW2Zaps/RWS6Rq ozgNGRf18ZDZjRLneoVdwxts5lunmO49gbzZ1Jt3AEKwOeB3Sxv1/RGdRi8xxMMkYa y/UoL5tCZ52iVDwsssSzXidydf0usNKfgQkMsaTyM76ON57QjdUfpCPmNtE7MISKXg X6amje84GGIdwGwQ2dDFfUomqLaLQ29POxR6nWro3hpavdmnbQGAdwJJ1jjkVRSC4s PTblpOeZwRpfz1Z4SEdBv332IFh+ft4sHn3+apHasF6Kk84kcoXTi1iu6TYkY6+oY8 VuobNh2Kj8mPA== Received: by mail-pl1-f197.google.com with SMTP id x4-20020a170902ec8400b0015f0c1ec803so9654069plg.15 for <kernel-team@lists.ubuntu.com>; Tue, 17 May 2022 07:22:46 -0700 (PDT) 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=kPhNgydh24aDTbe+2ZBY1zZaxVUvO0ksLo+Olj/A0qc=; b=QbTtxUBSfKFo/YfL3OFrCKb9HCR7JAWgcFGB517Ci+oswxOPbUrcpIHMs968SDpLUb XydezBWRNe9TyJfxEdS4NOH05Vo2Dnne0mxanTADJHB3bAgm5ZU7GxhH9UVNkzA+GOi7 5CuRgrfqagEYX/swWWRPEEn8KP5N7TiBIIJcBepb7ly0DU0D4Id2bBvzyC+r2nPCZne8 4Prgp7lfC1NktBm08gNyfG1UKkv/PWMIlav+iGnvq1baJ0Gzb3X5Tyhly+pQZPck0hde IMf9EC0YndcQCja/5r0vSpoQHpePUD/kIKhtxP6guzYlXV+2R0/hLftBu355viQbBxRi 2vnA== X-Gm-Message-State: AOAM531NlZ3o4uadJdTVxEZh4G+FP/JXt8yl5anfa4gweKqwOxQ6zLZm hg0GOhNrBoRSMBwgXi6atORwrcx021eIn2agT19wJl5nnpyrh2AbgyqTGjg0T1HvLqma4NQHSTf bGGRTIz0Yn6ptmBKEFGnISzfn8GHTFvJbi/b5jKutZw== X-Received: by 2002:a17:902:bd81:b0:15f:2f8f:ea99 with SMTP id q1-20020a170902bd8100b0015f2f8fea99mr22514322pls.7.1652797364867; Tue, 17 May 2022 07:22:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBlYoL9uAeCNUUMyVIKnrcjdsM+QMS0UiCPs8fdjpKIdZNrUwWwNGRok2EIxPWlIAqKcyqqw== X-Received: by 2002:a17:902:bd81:b0:15f:2f8f:ea99 with SMTP id q1-20020a170902bd8100b0015f2f8fea99mr22514307pls.7.1652797364598; Tue, 17 May 2022 07:22:44 -0700 (PDT) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id d11-20020a62f80b000000b0050dc7628149sm9023368pfh.35.2022.05.17.07.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 07:22:44 -0700 (PDT) From: Tim Gardner <tim.gardner@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/2] PCI: hv: Add missing kfree(hbus) in hv_pci_probe()'s error handling path Date: Tue, 17 May 2022 08:22:34 -0600 Message-Id: <20220517142234.11048-3-tim.gardner@canonical.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220517142234.11048-1-tim.gardner@canonical.com> References: <20220517142234.11048-1-tim.gardner@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
[1/2] PCI: hv: Avoid a kmemleak false positive caused by the hbus buffer
|
expand
|
diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index ea5aded65ec1..5714c313f548 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -3562,7 +3562,7 @@ static int hv_pci_probe(struct hv_device *hdev, free_dom: hv_put_dom_num(hbus->bridge->domain_nr); free_bus: - free_page((unsigned long)hbus); + kfree(hbus); return ret; }