Files
twx-linux/drivers
Trek cc376abf17 drm/amdgpu: Check for valid number of registers to read
[ Upstream commit 73d8e6c7b8 ]

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 <trek00@inbox.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-11 18:18:40 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
2019-10-07 18:55:08 +02:00
…
…
…
2019-10-07 18:55:08 +02:00
…
…
…
…
…
…
2019-07-31 07:28:24 +02:00
…
…
…
…
…
…
…
…
…
…
2019-09-16 08:20:46 +02:00
…
…
…
2019-10-11 18:18:38 +02:00
…
…