aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorElizabeth Figura <[email protected]>2025-02-20 19:23:34 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-21 10:57:33 +0000
commit92527e473911b835c2c18b0c55c337c33e85ff00 (patch)
tree20a319170f5bf1342c2440b11a97aa12c80dddde /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentbus: simple-pm-bus: fix forced runtime PM use (diff)
downloadkernel-92527e473911b835c2c18b0c55c337c33e85ff00.tar.gz
kernel-92527e473911b835c2c18b0c55c337c33e85ff00.zip
ntsync: Check wait count based on byte size.
GCC versions below 13 incorrectly detect the copy size as being static and too small to fit in the "fds" array. Work around this by explicitly calculating the size and returning EINVAL based on that, instead of based on the object count. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Suggested-by: Arnd Bergmann <[email protected]> Signed-off-by: Elizabeth Figura <[email protected]> -- Suggested-by as per Arnd's request, but the only thing I changed was preserving array_size() [as noted by Geert in the linked thread]. I tested and found no regressions. v2: Add missing sign-off Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions