]> 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)
commitb8244f0f5db7d0d4d6dda1e37263617aa5d63f27
treef3ae728e01fc641722594005771462fbe42ba5b9
parent97896a2d41c38419982e9f61dfcc55678d21260c
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