summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2025-12-24 16:29:04 -0800
committerAndrew Morton <akpm@linux-foundation.org>2026-01-14 22:16:21 -0800
commita38be546269073bf8edc3c49eaf18cdfce905777 (patch)
treeeafc373d4320d2cd347ff43e08ec8073cfb34c20 /include/linux/platform_data/git@git.tavy.me:linux.git
parent582f0f3864110e1c6e4af3af768e1c2453ba2306 (diff)
mm/damon/core: get memcg reference before access
The commit b74a120bcf507 ("mm/damon/core: implement DAMOS_QUOTA_NODE_MEMCG_USED_BP") added accesses to memcg structure without getting reference to it. This is unsafe. Let's get the reference before accessing the memcg. Link: https://lkml.kernel.org/r/20251225002904.139543-1-shakeel.butt@linux.dev Fixes: b74a120bcf507 ("mm/damon/core: implement DAMOS_QUOTA_NODE_MEMCG_USED_BP") Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/platform_data/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions