Subject: Re: Dealing with buggy hardware (was: b44 and 4g4g)

From: "David S. Miller" <[email-masked]>
Date: Sat, 5 Jun 2004 13:19:23 -0700

On Sat, 5 Jun 2004 23:06:44 +0300
Pekka Pietikainen <[email-masked]> wrote:

> +	if(virt_to_bus(skb->data) + skb->len > B44_PCI_DMA_MAX) {

You can't use this non-portable interface, you have to:

1) pci_map the data
2) test the dma_addr_t returned