linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pagewalk: don't pte_unmap(NULL) in walk_pte_range()
@ 2008-04-09 10:08 Roel Kluin
  2008-04-09 13:30 ` Johannes Weiner
  0 siblings, 1 reply; 5+ messages in thread
From: Roel Kluin @ 2008-04-09 10:08 UTC (permalink / raw)
  To: linux-mm, lkml

This is right isn't it?
---
Don't pte_unmap a NULL pointer, but the previous.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/mm/pagewalk.c b/mm/pagewalk.c
index 1cf1417..6615f0b 100644
--- a/mm/pagewalk.c
+++ b/mm/pagewalk.c
@@ -15,7 +15,7 @@ static int walk_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
 		       break;
 	} while (pte++, addr += PAGE_SIZE, addr != end);
 
-	pte_unmap(pte);
+	pte_unmap(pte - 1);
 	return err;
 }
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-10 14:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09 10:08 [PATCH] pagewalk: don't pte_unmap(NULL) in walk_pte_range() Roel Kluin
2008-04-09 13:30 ` Johannes Weiner
2008-04-10 11:42   ` Roel Kluin
2008-04-10 12:09   ` Andreas Schwab
2008-04-10 14:01     ` [PATCH] Stay below upper pmd boundary on pte range walk Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox