Merge tag 'regulator-spi-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broon...
[linux-2.6-microblaze.git] / kernel / fork.c
index 8642530..d90af13 100644 (file)
@@ -397,8 +397,8 @@ static void account_kernel_stack(struct task_struct *tsk, int account)
                mod_zone_page_state(page_zone(first_page), NR_KERNEL_STACK_KB,
                                    THREAD_SIZE / 1024 * account);
 
-               mod_memcg_page_state(first_page, MEMCG_KERNEL_STACK_KB,
-                                    account * (THREAD_SIZE / 1024));
+               mod_memcg_obj_state(stack, MEMCG_KERNEL_STACK_KB,
+                                   account * (THREAD_SIZE / 1024));
        }
 }