Re: [PATCH 1/2] hpt366: fix PCI clock detection for HPT374

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

 



> +		if (chip_type == HPT374 && (PCI_FUNC(dev->devfn) & 1)) {
> +			struct pci_dev	*dev1 = pci_get_slot(dev->bus,
> +							     dev->devfn - 1);

Can be NULL
> +			unsigned long io_base = pci_resource_start(dev1, 4);

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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux