Messages in this thread Patch in this message |  | | Date | Tue, 16 Oct 2001 02:29:02 -0700 (PDT) | Subject | Re: Oops while inserting sym53c8xx.o | From | "David S. Miller" <> |
| |
This should fix it, Linux please apply.
--- drivers/scsi/sym53c8xx.c.~1~ Mon Oct 8 21:04:56 2001 +++ drivers/scsi/sym53c8xx.c Tue Oct 16 02:27:44 2001 @@ -13168,14 +13168,14 @@ ** in the size field. We use normal 32-bit PCI addresses for ** descriptors. */ - if (chip->features & FE_DAC) { + if (chip && (chip->features & FE_DAC)) { if (pci_set_dma_mask(pdev, (u64) 0xffffffffff)) chip->features &= ~FE_DAC_IN_USE; else chip->features |= FE_DAC_IN_USE; } - if (!(chip->features & FE_DAC_IN_USE)) { + if (chip && !(chip->features & FE_DAC_IN_USE)) { if (pci_set_dma_mask(pdev, (u64) 0xffffffff)) { printk(KERN_WARNING NAME53C8XX "32 BIT PCI BUS DMA ADDRESSING NOT SUPPORTED\n"); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |