Skip to content
Commit 48da181d authored by Laura Abbott's avatar Laura Abbott Committed by Linus Walleij
Browse files

gpio: Remove VLA from MAX3191X driver

The new challenge is to remove VLAs from the kernel
(see https://lkml.org/lkml/2018/3/7/621

)

This patch replaces several a VLA with an appropriate call to
kmalloc_array.

Signed-off-by: default avatarLaura Abbott <labbott@redhat.com>
Reviewed-and-tested-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a8ff510d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment