Message ID | 20210816072147.3481782-12-chenhuang5@huawei.com |
---|---|
State | New |
Headers | show |
Series | mm: memcontrol: fix nullptr in __mod_lruvec_page_state() | expand |
diff --git a/mm/slab.h b/mm/slab.h index 571757eb4a8f..9759992c720c 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -349,7 +349,7 @@ static inline void memcg_slab_free_hook(struct kmem_cache *s_orig, continue; page = virt_to_head_page(p[i]); - objcgs = page_objcgs(page); + objcgs = page_objcgs_check(page); if (!objcgs) continue;