diff options
| author | Jesse Zhang <Jesse.Zhang@amd.com> | 2026-09-30 14:21:19 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-10-07 12:00:16 -0400 |
| commit | 49a443fcb829be9fc780f10850652ddea2fe81f0 (patch) | |
| tree | 340aeaf4e908023a640afc270d110713430795ee /scripts/Makefile.thinlto | |
| parent | f7497bbc19db4821c62b9d97b31c9086feb2d917 (diff) | |
| download | linux-next-49a443fcb829be9fc780f10850652ddea2fe81f0.tar.gz linux-next-49a443fcb829be9fc780f10850652ddea2fe81f0.zip | |
drm/amdgpu/userq: return the memdup_user() error for the user MQD
mes_userq_mqd_create() returns -ENOMEM when copying the user MQD fails,
even though memdup_user() returns -EFAULT for a bad pointer or -EINTR
when interrupted by a signal. Return PTR_ERR() instead.
While at it drop the error messages. Neither case is a driver error and
userspace shouldn't be able to spam the log with invalid IOCTL
parameters.
v2: drop the error messages (Christian)
Fixes: 2c695d7c0720 ("drm/amdgpu: enable compute/gfx usermode queue")
Fixes: 543b61453774 ("drm/amdgpu: enable SDMA usermode queues")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
