drm/gma500: Remove VLA
authorLaura Abbott <labbott@redhat.com>
Mon, 9 Apr 2018 21:06:47 +0000 (14:06 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 May 2018 08:45:02 +0000 (10:45 +0200)
commit520ea9347505f5eb90a6162385cf821e80b6c233
tree6cbd836fe5e013f735efca7ca2c8bbbdbd22f40b
parentc7cbed560ce24a87eccf219bc4c78a19961a6074
drm/gma500: Remove VLA

There's an ongoing effort to remove VLAs[1] from the kernel to eventually
turn on -Wvla. Switch to a reasonable upper bound for the VLAs in
the gma500 driver.

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180409210647.3718-1-labbott@redhat.com
drivers/gpu/drm/gma500/psb_intel_sdvo.c