aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2024-01-09 15:59:15 +0100
committerMike Snitzer <snitzer@kernel.org>2024-01-30 14:06:44 -0500
commit9cf11ce06ea52911245578032761e40a6409cf35 (patch)
treec0eee6f11a1148c4d7a509d88d989ecf55df0c26 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentdm: limit the number of targets and parameter size area (diff)
downloadlinux-rng-9cf11ce06ea52911245578032761e40a6409cf35.tar.xz
linux-rng-9cf11ce06ea52911245578032761e40a6409cf35.zip
dm stats: limit the number of entries
The kvmalloc function fails with a warning if the size is larger than INT_MAX. Linus said that there should be limits that prevent this warning from being hit. This commit adds the limits to the dm-stats subsystem in DM core. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions