Re: [BUG] net: sungem: device driver frees DMA memory with wrong function

From: David Miller
Date: Mon Dec 24 2018 - 17:39:49 EST


From: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>
Date: Sun, 23 Dec 2018 20:38:21 +0100

> During a boot on a qemu machine, I hit the following problem:
...
> After some pr_info, I found that the function triggering this is the pci_unmap_page() in gem_tx().
> So clearly this WARNING() is strange since it says "unmapped as single".

I also went through the code paths and this makes no sense to me either.