Re: 2.5.37 oopses at boot in ide_toggle_bounce

Thunder from the hill (thunder@lightweight.ods.org)
Sun, 22 Sep 2002 13:54:10 -0600 (MDT)


Hi,

On Sat, 21 Sep 2002 Andries.Brouwer@cwi.nl wrote:
> + else if (HWIF(drive)->pci_dev)
> addr = HWIF(drive)->pci_dev->dma_mask;

Maybe

else if (HWIF(drive) && HWIF(drive)->pci_dev)

You never know ;-)

If drive->hwif is NULL for some insane reason, we'll suck as we did with
->pci_dev.

Thunder

-- 
assert(typeof((fool)->next) == typeof(fool));	/* wrong */

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