]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: kfree the wrong pointer
authorJack Zhang <Jack.Zhang1@amd.com>
Wed, 1 Apr 2020 12:06:58 +0000 (20:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:30:20 +0000 (10:30 +0200)
commit044a884072b4313554d910b792f46c3e1f0099a5
tree75938d73e8bab60dc1ace256074722cc75e0b189
parent67e5b7090905050a8c5efbe14889695a1c6b77f6
drm/amdkfd: kfree the wrong pointer

[ Upstream commit 3148a6a0ef3cf93570f30a477292768f7eb5d3c3 ]

Originally, it kfrees the wrong pointer for mem_obj.
It would cause memory leak under stress test.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_device.c