Boris Brezillon ba26cd7d58 mtd: sa1100: avoid VLA in sa1100_setup_mtd
Enabling -Wvla found another variable-length array with randconfig
testing:

drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_setup_mtd':
drivers/mtd/maps/sa1100-flash.c:224:10: error: ISO C90 forbids variable length array 'cdev' [-Werror=vla]

Dynamically allocate the cdev array passed to mtd_concat_create()
instead of using a VLA.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Olof Johansson <olof@lixom.net>
2018-11-06 10:38:17 +01:00
..
2017-11-06 23:26:01 +01:00
2008-06-04 17:50:17 +01:00
2017-11-06 23:26:01 +01:00
2017-11-06 23:26:01 +01:00
2017-08-15 14:00:46 +02:00
2017-11-06 23:26:01 +01:00
2017-11-06 23:26:01 +01:00
2017-11-06 23:26:01 +01:00