Re: Oops in a driver while using SLUB as a SLAB allocator

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marc Pignat
Date: Thursday, June 21, 2007 - 7:57 am

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);
 	}

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 2:30 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Marc Pignat, (Thu Jun 21, 7:57 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 8:54 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:36 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:41 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:10 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:13 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:31 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Thu Jun 21, 10:37 pm)
[PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Thu Jun 21, 11:28 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Russell King, (Fri Jun 22, 12:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Fri Jun 22, 2:09 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 5:00 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Nicolas Ferre, (Fri Jun 22, 6:34 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 6:46 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:21 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:58 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Linus Torvalds, (Fri Jun 22, 9:40 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:26 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:41 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 11:39 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 11:51 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Jens Axboe, (Fri Jun 22, 12:00 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 12:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 12:11 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 1:15 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 3:54 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Mon Jun 25, 6:55 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 7:07 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 10:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 10:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 11:43 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:50 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 12:04 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Tue Jun 26, 11:09 am)