Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756160AbXFUPOI (ORCPT ); Thu, 21 Jun 2007 11:14:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751694AbXFUPN4 (ORCPT ); Thu, 21 Jun 2007 11:13:56 -0400 Received: from mail02.vsnet.ch ([153.109.10.41]:42825 "EHLO mail02.vsnet.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755AbXFUPNz (ORCPT ); Thu, 21 Jun 2007 11:13:55 -0400 X-Greylist: delayed 1102 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Jun 2007 11:13:55 EDT From: Marc Pignat Organization: HEVs To: Nicolas Ferre Subject: Re: Oops in a driver while using SLUB as a SLAB allocator Date: Thu, 21 Jun 2007 16:57:49 +0200 User-Agent: KMail/1.9.5 Cc: ARM Linux Mailing List , Linux Kernel list , Andrew Victor , Pierre Ossman References: <467A4532.40301@rfo.atmel.com> In-Reply-To: <467A4532.40301@rfo.atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706211657.49427.marc.pignat@hevs.ch> X-VSnet-MailScanner: Found to be clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 31 please use this patch, sorry for the later Regards Marc --- drivers/mmc/host/at91_mci.c-2.6.22-rc5.orig 2007-06-21 16:27:31.000000000 +0200 +++ drivers/mmc/host/at91_mci.c-2.6.22-rc5 2007-06-21 16:42:48.000000000 +0200 @@ -164,7 +164,7 @@ static inline void at91mci_sg_to_dma(str else memcpy(dmabuf, sgbuffer, amount); - kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ); + kunmap_atomic(sgbuffer - sg->offset, KM_BIO_SRC_IRQ); if (size == 0) break; @@ -293,7 +293,7 @@ static void at91mci_post_dma_read(struct buffer[index] = swab32(buffer[index]); } - kunmap_atomic(buffer, KM_BIO_SRC_IRQ); + kunmap_atomic(buffer - sg->offset, KM_BIO_SRC_IRQ); flush_dcache_page(sg->page); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/