]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu: lower CS errors to debug severity
authorChristian König <christian.koenig@amd.com>
Thu, 9 Nov 2023 09:14:14 +0000 (10:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:07:22 +0000 (17:07 +0000)
commit 17daf01ab4e3e5a5929747aa05cc15eb2bad5438 upstream.

Otherwise userspace can spam the logs by using incorrect input values.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index 4624160315648b6a3ef2008eb6fcc03542bffe80..ced4e7e8f98b5e3007348ecf2f200f4dba54333c 100644 (file)
@@ -1391,7 +1391,7 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
                if (r == -ENOMEM)
                        DRM_ERROR("Not enough memory for command submission!\n");
                else if (r != -ERESTARTSYS && r != -EAGAIN)
-                       DRM_ERROR("Failed to process the buffer list %d!\n", r);
+                       DRM_DEBUG("Failed to process the buffer list %d!\n", r);
                goto error_fini;
        }