From: Borislav Petkov <bp@alien8.de>
To: Tony Luck <tony.luck@intel.com>
Cc: Myeonghun Pak <mhun512@gmail.com>,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] EDAC/e752x: Use managed PCI device enablement
Date: Tue, 15 Sep 2026 18:20:46 -0700 [thread overview]
Message-ID: <20260916012046.GDaqnu7sIhsWbtLCOG@fat_crate.local> (raw)
In-Reply-To: <20260915015519.83833-2-mhun512@gmail.com>
This one too?
If no objections, I'd orphan them all and stop taking patches for them.
On Mon, Sep 14, 2026 at 09:55:17PM -0400, Myeonghun Pak wrote:
> e752x_init_one() enables the PCI device without balancing the enable
> reference on probe failure or removal. Use pcim_enable_device() so the
> PCI device is disabled after failed probing and after driver removal.
>
> This issue was identified during our ongoing static-analysis research
> while reviewing kernel code.
>
> Fixes: 806c35f5057a ("[PATCH] EDAC: drivers for AMD 76x and Intel E750x, E752x")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Co-developed-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
> ---
> drivers/edac/e752x_edac.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
> --- a/drivers/edac/e752x_edac.c
> +++ b/drivers/edac/e752x_edac.c
> @@ -1387,7 +1387,7 @@ static int e752x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> edac_dbg(0, "\n");
>
> /* wake up and enable device */
> - if (pci_enable_device(pdev) < 0)
> + if (pcim_enable_device(pdev) < 0)
> return -EIO;
>
> return e752x_probe1(pdev, ent->driver_data);
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2026-09-16 1:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 1:55 [PATCH 0/3] EDAC: Balance PCI device enablement in three Intel drivers Myeonghun Pak
2026-09-15 1:55 ` [PATCH 1/3] EDAC/e752x: Use managed PCI device enablement Myeonghun Pak
2026-09-16 1:20 ` Borislav Petkov [this message]
2026-09-16 15:31 ` Luck, Tony
2026-09-16 18:42 ` Borislav Petkov
2026-09-15 1:55 ` [PATCH 2/3] EDAC/i3000: Balance " Myeonghun Pak
2026-09-16 1:15 ` Borislav Petkov
2026-09-16 1:26 ` Borislav Petkov
2026-09-15 1:55 ` [PATCH 3/3] EDAC/x38: " Myeonghun Pak
2026-09-16 1:18 ` Borislav Petkov
2026-09-16 19:28 ` [PATCH] MAINTAINERS: Orphan drivers/edac/x38_edac.c Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260916012046.GDaqnu7sIhsWbtLCOG@fat_crate.local \
--to=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhun512@gmail.com \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®