From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [Patch net-next]atl1e:fix 2.6.31-git4 -- ATL1E 0000:03:00.0: DMA-API: device driver frees DMA Date: Wed, 16 Sep 2009 00:44:52 -0700 (PDT) Message-ID: <20090916.004452.40084897.davem@davemloft.net> References: <12530857843502-git-send-email-jie.yang@atheros.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: miles.lane@gmail.com, chris.snook@gmail.com, jcliburn@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: jie.yang@atheros.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:54005 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752771AbZIPHof (ORCPT ); Wed, 16 Sep 2009 03:44:35 -0400 In-Reply-To: <12530857843502-git-send-email-jie.yang@atheros.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Date: Wed, 16 Sep 2009 15:23:04 +0800 > [ 25.059969] WARNING: at lib/dma-debug.c:816 check_unmap+0x383/0x55c() > [ 25.059976] Hardware name: 1000HE > [ 25.059984] ATL1E 0000:03:00.0: DMA-API: device driver frees DMA > memory with wrong function [device address=0x0000000036b92802] > [size=90 bytes] [mapped as single] [unmapped as page] > > use the wrong API when free dma. So when map dma use a flag to > demostrate whether it is 'pci_map_single' or 'pci_map_page'. When free > the dma, check the flags to select the right APIs('pci_unmap_single' or 'pci_unmap_page'). > > set the flags type to u16 instead of unsigned long on David's comments. > > Signed-off-by: Jie Yang Your email client has corrupted this patch (turning tab characters into spaces, etc.) making it unusable.