]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2dff27eaecccd82917e0a9b810a5ff9770d7237f
tree760872076d8c1969ccda1e41cfe84a06c476664a
parent5d14d2c5465f05d9e253115d27d4a5d21dcf2e76
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