]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: rave-sp: Remove VLA
authorKyle Spiers <ksspiers@google.com>
Fri, 27 Apr 2018 22:30:23 +0000 (15:30 -0700)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commitd0846f5083af3b69fad376c27a55a84d13cab356
tree6d733e984373eff7973cb484ae1d33e3e317bbe3
parentbc4a6bce2616151cc6cc3453db2961c7666b869b
mfd: rave-sp: Remove VLA

As part of the effort to remove VLAs from the kernel[1], this creates
constants for the checksum lengths of CCITT and 8B2C and changes
crc_calculated to be the maximum size of a checksum.

https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <ksspiers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rave-sp.c