]> git.baikalelectronics.ru Git - kernel.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:22 +0000 (14:44 -0400)
commitc7fb005b76e0dbded80b7e3ab9b1050153cb47c9
tree17c68ada245fc378835f7f47ee6a5464fbd50f86
parent34e464d1a9d51d9c0ce88bdaa8c109b67ed646ae
drm/amdkfd: kfree the wrong pointer

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>
drivers/gpu/drm/amd/amdkfd/kfd_device.c