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

Mark Brown broonie at kernel.org
Fri Aug 30 12:57:47 PDT 2024


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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240830/a4059400/attachment.sig>


More information about the linux-arm-kernel mailing list