aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 74a65a61fd23..1acaa8473629 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -241,7 +241,7 @@ static int amdgpu_ras_debugfs_ctrl_parse_data(struct file *f,
241 op = 1; 241 op = 1;
242 else if (sscanf(str, "inject %32s %8s", block_name, err) == 2) 242 else if (sscanf(str, "inject %32s %8s", block_name, err) == 2)
243 op = 2; 243 op = 2;
244 else if (sscanf(str, "%32s", block_name) == 1) 244 else if (str[0] && str[1] && str[2] && str[3])
245 /* ascii string, but commands are not matched. */ 245 /* ascii string, but commands are not matched. */
246 return -EINVAL; 246 return -EINVAL;
247 247