
From: Steve Dickson <SteveD@redhat.com>

Fixed typos that cause wrong pointer to be kunmapped.

Signed-off-by: Steve Dickson <SteveD@RedHat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/fs/cachefs/journal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/cachefs/journal.c~cachefs-fixed-typos-that-cause-wrong-pointer-to-be-kunmapped fs/cachefs/journal.c
--- 25/fs/cachefs/journal.c~cachefs-fixed-typos-that-cause-wrong-pointer-to-be-kunmapped	Fri Sep 17 16:49:17 2004
+++ 25-akpm/fs/cachefs/journal.c	Fri Sep 17 16:49:18 2004
@@ -1213,7 +1213,7 @@ static void cachefs_trans_batch_write_ma
 	offset = (jstop << super->sb->s_blocksize_bits) & ~PAGE_MASK;
 	jentry = kmap_atomic(jpage, KM_USER0) + offset;
 	memcpy(jentry, ajentry, super->sb->s_blocksize);
-	kunmap_atomic(offset, KM_USER0);
+	kunmap_atomic(jentry, KM_USER0);
 	flush_dcache_page(jpage);
 
 	kjournal("UJNL[%05u] BATCH mark %d",
@@ -1293,7 +1293,7 @@ static void cachefs_trans_batch_write_ac
 	offset = (jstop << super->sb->s_blocksize_bits) & ~PAGE_MASK;
 	jentry = kmap_atomic(jpage, KM_USER0) + offset;
 	memcpy(jentry, ajentry, super->sb->s_blocksize);
-	kunmap_atomic(offset, KM_USER0);
+	kunmap_atomic(jentry, KM_USER0);
 	flush_dcache_page(jpage);
 
 	kjournal("UJNL[%05u] ACK mark %d",
_
