]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Fix mm_struct reference leak in aie2_populate_range()
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 10 Jun 2026 15:11:27 +0000 (08:11 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Thu, 11 Jun 2026 16:50:07 +0000 (09:50 -0700)
commit2f41af638c92bac6f1f9275ea2d1901baef578f3
tree89ac96a1ae37f6f1c7755df1aa0c9bc5709bea21
parentd79716401a954677a93c4dd51fec65beccb38296
accel/amdxdna: Fix mm_struct reference leak in aie2_populate_range()

aie2_populate_range() jumps back to the again label without calling
mmput(mm), leaking a reference to the mm_struct.

Add the missing mmput() before jumping to again.

Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260610151127.2994185-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c