drm/amdgpu/pm: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Wed, 20 Jun 2018 18:26:47 +0000 (11:26 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jul 2018 21:18:45 +0000 (16:18 -0500)
commit4b4bd04898ad8a315b4a8740ff4909ea995f0c65
tree760872076d8c1969ccda1e41cfe84a06c476664a
parent7eb80427746175530f03a00ad5281c4222f17238
drm/amdgpu/pm: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this
uses the maximum sane buffer size and removes copy/paste code.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Reviewed-by: Rex Zhu <rezhu@amd.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c