OSDN Git Service

gpio: Remove VLA from xra1403 driver
authorLaura Abbott <labbott@redhat.com>
Sat, 10 Mar 2018 00:10:20 +0000 (16:10 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Mar 2018 13:18:19 +0000 (15:18 +0200)
commit13b5319e92a94036ce2131f76510e108428daec8
tree0485e859e398b8bcb2cf5b91f77ae5a2b4ab5f8f
parent48da181dac478bb517aae2483e69f3eeec24172c
gpio: Remove VLA from xra1403 driver

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

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

Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xra1403.c