From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 1/4] r6040: fix ifconfig down and freeing of tx/rx descriptors Date: Fri, 09 Jan 2009 23:16:41 -0800 (PST) Message-ID: <20090109.231641.79400772.davem@davemloft.net> References: <200901090204.39930.florian@openwrt.org> <20090109.230707.252449247.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jeff@garzik.org, netdev@vger.kernel.org, Joe.Chou@rdc.com.tw To: florian@openwrt.org Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:58674 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752221AbZAJHQk (ORCPT ); Sat, 10 Jan 2009 02:16:40 -0500 In-Reply-To: <20090109.230707.252449247.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: From: David Miller Date: Fri, 09 Jan 2009 23:07:07 -0800 (PST) > From: Florian Fainelli > Date: Fri, 9 Jan 2009 02:04:39 +0100 > > > Subject: [PATCH 1/4] r6040: fix ifconfig down and freeing of tx/rx descriptors > > > > This patch fixes warnings and such traces that appear when doing > > an ifconfig down on the interface: > > > > WARNING: at arch/x86/kernel/pci-dma.c:376 dma_free_coherent+0x40/0x7d() > > Modules linked in: > > > > Signed-off-by: Joe Chou > > Signed-off-by: Florian Fainelli > > Applied. Actually, this breaks the build. The problem is that there is no 'pdev' in r6040_close() where you moved these pci_free_consistent() calls. I guess on whatever platform you tried to compile test this, these interfaces are macros and thus ignore the 'pdev' argument. I'll fix this but...