Re: 2.5.37 oopses at boot in ide_toggle_bounce

From: Thunder from the hill (thunder@lightweight.ods.org)
Date: Sun Sep 22 2002 - 14:54:10 EST


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/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:36 EST