From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [BUG] net: sungem: device driver frees DMA memory with wrong function Date: Mon, 24 Dec 2018 14:39:46 -0800 (PST) Message-ID: <20181224.143946.1890079755062380899.davem@davemloft.net> References: <20181223193821.GA24922@Red> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: clabbe.montjoie@gmail.com Return-path: In-Reply-To: <20181223193821.GA24922@Red> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Corentin Labbe 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.