File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,13 @@ static struct kmem_cache *kvm_pmd_cache;
353
353
354
354
static pte_t * kvmppc_pte_alloc (void )
355
355
{
356
- return kmem_cache_alloc (kvm_pte_cache , GFP_KERNEL );
356
+ pte_t * pte ;
357
+
358
+ pte = kmem_cache_alloc (kvm_pte_cache , GFP_KERNEL );
359
+ /* pmd_populate() will only reference _pa(pte). */
360
+ kmemleak_ignore (pte );
361
+
362
+ return pte ;
357
363
}
358
364
359
365
static void kvmppc_pte_free (pte_t * ptep )
@@ -363,7 +369,13 @@ static void kvmppc_pte_free(pte_t *ptep)
363
369
364
370
static pmd_t * kvmppc_pmd_alloc (void )
365
371
{
366
- return kmem_cache_alloc (kvm_pmd_cache , GFP_KERNEL );
372
+ pmd_t * pmd ;
373
+
374
+ pmd = kmem_cache_alloc (kvm_pmd_cache , GFP_KERNEL );
375
+ /* pud_populate() will only reference _pa(pmd). */
376
+ kmemleak_ignore (pmd );
377
+
378
+ return pmd ;
367
379
}
368
380
369
381
static void kvmppc_pmd_free (pmd_t * pmdp )
You can’t perform that action at this time.
0 commit comments