Re: [PATCH v2] drivers: spi: Insert the missing pci_dev_put()before return
From: Mark Brown
Date: Fri Aug 30 2024 - 15:57:58 EST
On Fri, Aug 30, 2024 at 10:55:06AM +0200, Geert Uytterhoeven wrote:
> On Thu, Aug 29, 2024 at 5:35 AM Yang Ruibin <11162571@xxxxxxxx> wrote:
> > - if (ret)
> > + if (ret) {
> > + pci_dev_put(dma_dev);
> dma_dev is still uninitialized at this point.
I'm a bit concerned that this isn't picked up by an allmodconfig with
the -Werror... I'm currently using GCC 12 for that.
Attachment:
signature.asc
Description: PGP signature