Re: [RFC] Megaraid update, submission

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

 



Andre Hedrick wrote:
+static int megaraid_pci_master_abort(struct pci_dev* dev)
+{
+	u16 status, error_bits;
+
+	pci_read_config_word(dev, PCI_STATUS, &status);
+	if (error_bits)
+		pci_write_config_word(dev, PCI_STATUS, error_bits);
+	pci_read_config_word(dev, PCI_STATUS, &status);

error_bits is used before a value is assigned to it. Presumably you are missing a duplicate of a line further down in the function,

	error_bits = (status & PCI_STATUS_REC_MASTER_ABORT);

The list stuff looks OK, to my quick glance.

	Jeff


-
: 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