diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-09 21:27:08 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-03-12 16:34:52 +0300 |
commit | fc5a7f0339d0641c0df14a9ed8af49c9992f9bef (patch) | |
tree | 84d5e02cdde80b6afa6a1f685da589e4be76230f /net/unix/af_unix.c | |
parent | 3c6b4f46b414a1d0cf9122effc2fad444554d507 (diff) | |
download | linux-fc5a7f0339d0641c0df14a9ed8af49c9992f9bef.tar.xz |
power: supply: da9150-fg: remove VLA usage
In preparation to enabling -Wvla, remove VLA usage and replace it
with fixed-length arrays.
DA9150_QIF_LONG_SIZE (4 bytes) is the biggest size of an attribute which can
be accessed [1].
Fixed as part of the directive to remove all VLAs from
the kernel: https://lkml.org/lkml/2018/3/7/621
[1] https://marc.info/?l=kernel-hardening&m=152059600524753&w=2
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions