Re: [PATCH v2] drivers: spi: Insert the missing pci_dev_put()before return

Mark Brown
2024-08-30T19:57:52Z

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

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@vivo.com> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]