]> git.baikalelectronics.ru Git - kernel.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)
commitb052cf8b47722f70656f68a9ad166a21159128fe
tree4327180d678cfa4d54bd82570b503a66d55a10e0
parentb6d2556fba81be081d61fa2ea9e9a1fbcc7b7ee8
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