Re: [PATCH]: Switch fdomain to the pci_get API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ar Llu, 2006-10-16 am 10:20 -0600, ysgrifennodd Matthew Wilcox:
> On Mon, Oct 16, 2006 at 04:55:46PM +0100, Alan Cox wrote:
> > +	if (PCI_bus)
> > +		pci_dev_put(PCI_dev);
> 
> shirley 'if (PCI_dev)'?

No

The PCI_bus flag tells us that the hardware found and uses a PCI device,
which means PCI_dev holds a valid value (or NULL) which can and should
be passed to pci_dev_put.

Don't blame me I didn't write the driver ;)

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux