diff options
author | Laura Abbott <labbott@redhat.com> | 2018-04-10 18:03:30 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-05-23 10:45:22 +0200 |
commit | ca510ead96d78c5379db5d36ffbdf5382f36db6d (patch) | |
tree | 97470aae150f28d536a2c7e29e6f82a72fbe570f /drivers/gpu/drm/udl | |
parent | 520ea9347505f5eb90a6162385cf821e80b6c233 (diff) | |
download | linux-next-ca510ead96d78c5379db5d36ffbdf5382f36db6d.tar.gz |
drm/i2c: tda998x: Remove VLA usage
There's an ongoing effort to remove VLAs[1] from the kernel to eventually
turn on -Wvla. The vla in reg_write_range is based on the length of data
passed. The one use of a non-constant size for this range is bounded by
the size buffer passed to hdmi_infoframe_pack which is a fixed size.
Switch to this upper bound.
[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/20180411010330.17866-1-labbott@redhat.com
Diffstat (limited to 'drivers/gpu/drm/udl')
0 files changed, 0 insertions, 0 deletions