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:58:45 -0400 |
| commit | 76ceb6ed610cbf14341a9ba78c5c0b2199b9030a (patch) | |
| tree | e9bc10e543e7ff068739587b627c1f6ad5135469 /scripts/Makefile.thinlto | |
| parent | 7f7c88dbf4d543f6703e53bdeed380e886733167 (diff) | |
| download | linux-next-76ceb6ed610cbf14341a9ba78c5c0b2199b9030a.tar.gz linux-next-76ceb6ed610cbf14341a9ba78c5c0b2199b9030a.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>
(cherry picked from commit 49a443fcb829be9fc780f10850652ddea2fe81f0)
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
