]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix a error injection failed issue
authorDennis Li <Dennis.Li@amd.com>
Fri, 16 Apr 2021 14:41:11 +0000 (22:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:36:01 +0000 (21:36 -0400)
commit65e0fd8cae7ee21d569d765e8463056360ab089f
treef3ae728e01fc641722594005771462fbe42ba5b9
parent31ee2a25ee56a9a8fb2c89b21fc02a347131ff88
drm/amdgpu: fix a error injection failed issue

because "sscanf(str, "retire_page")" always return 0, if application use
the raw data for error injection, it always wrongly falls into "op ==
3". Change to use strstr instead.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c