diff options
| author | Joshua Hahn <[email protected]> | 2025-06-02 16:23:39 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-06 05:02:23 +0000 |
| commit | 41ffaa0ea76206e4fb7589a5a499e6752c33188a (patch) | |
| tree | 787a76e00bca71a93e044bab3032ef5b400a1a0b /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | alloc_tag: handle module codetag load errors as module load failures (diff) | |
| download | kernel-41ffaa0ea76206e4fb7589a5a499e6752c33188a.tar.gz kernel-41ffaa0ea76206e4fb7589a5a499e6752c33188a.zip | |
mm/mempolicy: fix incorrect freeing of wi_kobj
We should not free wi_group->wi_kobj here. In the error path of
add_weighted_interleave_group() where this snippet is called from,
kobj_{del, put} is immediately called right after this section. Thus, it
is not only unnecessary but also incorrect to free it here.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: e341f9c3c841 ("mm/mempolicy: Weighted Interleave Auto-tuning")
Signed-off-by: Joshua Hahn <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Cc: Alistair Popple <[email protected]>
Cc: Byungchul Park <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Gregory Price <[email protected]>
Cc: "Huang, Ying" <[email protected]>
Cc: Mathew Brost <[email protected]>
Cc: Rakie Kim <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions
