> +static dma_addr_t vring_sg_address(struct scatterlist *sg) > +{ > + if (sg->dma_address) > + return sg->dma_address; 0 is a perfectly valid DMA address. So I have no idea how this is even supposed to work.
> +static dma_addr_t vring_sg_address(struct scatterlist *sg) > +{ > + if (sg->dma_address) > + return sg->dma_address; 0 is a perfectly valid DMA address. So I have no idea how this is even supposed to work.