diff options
author | Trek <trek00@inbox.ru> | 2019-08-31 21:25:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-11 18:36:35 +0200 |
commit | 47ec3242a4391f80bd0ce289ccd34d1a2fec49f1 (patch) | |
tree | 42465cfe23e476f9f76a6779b69e3f78fd5e4cf3 /net/lapb/lapb_timer.c | |
parent | f56134fae6bef31b4aa3c51ff5a7e4b5e7d095e9 (diff) |
drm/amdgpu: Check for valid number of registers to read
[ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ]
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions