Re: [PATCH] Drop ISA dependencies from IRDA drivers

From: Martin Diehl
Date: Fri Jul 16 2004 - 01:29:35 EST


On Fri, 16 Jul 2004, Andi Kleen wrote:

> > According to include/asm-x86_64/dma-mapping.h there is no such override
> > for x86-64. Hence the generic implementation is used which Oopses when
> > called with dev=NULL in dma_alloc_coherent because it dereferences dev
> > unconditionally.
>
> The old pci_alloc_coherent supported hwdev == NULL under x86-64.
> dma_alloc_consistent() should too. I will fix that.

Ok, thanks. This sounds like the right solution. I think most/all
functions in include/asm-generic/dma-mapping.h are not prepared to accept
dev=NULL parameters, so it's a bit more than just dma_alloc_coherent() :-(

Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/