|
@@ -19,6 +19,7 @@
|
|
#include <linux/moduleparam.h>
|
|
#include <linux/moduleparam.h>
|
|
#include <linux/swap.h>
|
|
#include <linux/swap.h>
|
|
#include <linux/swapops.h>
|
|
#include <linux/swapops.h>
|
|
|
|
+#include <linux/kmemleak.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/pgalloc.h>
|
|
#include <asm/pgalloc.h>
|
|
#include <asm/tlb.h>
|
|
#include <asm/tlb.h>
|
|
@@ -112,6 +113,8 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
|
|
for (i = i - 1 ; i >= 0; i--, hpdp--)
|
|
for (i = i - 1 ; i >= 0; i--, hpdp--)
|
|
*hpdp = __hugepd(0);
|
|
*hpdp = __hugepd(0);
|
|
kmem_cache_free(cachep, new);
|
|
kmem_cache_free(cachep, new);
|
|
|
|
+ } else {
|
|
|
|
+ kmemleak_ignore(new);
|
|
}
|
|
}
|
|
spin_unlock(ptl);
|
|
spin_unlock(ptl);
|
|
return 0;
|
|
return 0;
|