On Thu, 23 Aug 2007 13:13:10 -0500 Olof Johansson <[EMAIL PROTECTED]> wrote: > > out: > - pci_dev_put(mac->iob_pdev); > -out_put_dma_pdev: > - pci_dev_put(mac->dma_pdev); > -out_free_netdev: > + if (mac->iob_pdev) > + pci_dev_put(mac->iob_pdev); > + if (mac->dma_pdev) > + pci_dev_put(mac->dma_pdev);
It is not documented as such (as far as I can see), but pci_dev_put is safe to call with NULL. And there are other places in the kernel that explicitly use that fact. -- Cheers, Stephen Rothwell [EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/
pgpF6T5pR3jc3.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev