aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorTrek <[email protected]>2019-08-31 21:25:36 +0200
committerAlex Deucher <[email protected]>2019-09-17 14:37:45 -0500
commit73d8e6c7b841d9bf298c8928f228fb433676635c (patch)
treeaa3c214817af1798aa4dbce30b4ad1b2293fd43f /lib/string_helpers.c
parent9dbc88d013b79c62bd845cb9e7c0256e660967c5 (diff)
drm/amdgpu: Check for valid number of registers to read
Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15 (0x2644-0x2673). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=111273 Signed-off-by: Trek <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions