diff options
-rw-r--r-- | mm/slab.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3103,6 +3103,11 @@ static inline void *____cache_alloc(struct kmem_cache *cachep, gfp_t flags) | |||
3103 | } else { | 3103 | } else { |
3104 | STATS_INC_ALLOCMISS(cachep); | 3104 | STATS_INC_ALLOCMISS(cachep); |
3105 | objp = cache_alloc_refill(cachep, flags); | 3105 | objp = cache_alloc_refill(cachep, flags); |
3106 | /* | ||
3107 | * the 'ac' may be updated by cache_alloc_refill(), | ||
3108 | * and kmemleak_erase() requires its correct value. | ||
3109 | */ | ||
3110 | ac = cpu_cache_get(cachep); | ||
3106 | } | 3111 | } |
3107 | /* | 3112 | /* |
3108 | * To avoid a false negative, if an object that is in one of the | 3113 | * To avoid a false negative, if an object that is in one of the |