]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu: fix the memory corruption on S3
authorHuang Rui <ray.huang@amd.com>
Thu, 29 Jun 2017 06:21:49 +0000 (14:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Jun 2017 16:43:43 +0000 (12:43 -0400)
commit67bef0f7908a3a6b10e5a29d8e8c09e27f90c9f8
tree4327180d678cfa4d54bd82570b503a66d55a10e0
parent6b0fa871a9a2d83dd869ca40a7fd65a935d3564c
drm/amdgpu: fix the memory corruption on S3

psp->cmd will be used on resume phase, so we can not free it on hw_init.
Otherwise, a memory corruption will be triggered.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c