s390/dasd: Remove variable sized array
authorJan Höppner <hoeppner@linux.vnet.ibm.com>
Tue, 9 May 2017 12:07:37 +0000 (14:07 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Jun 2017 14:25:56 +0000 (16:25 +0200)
commit3050c20821d7e9f15566d105da9a0913de61e85c
treef8c0db1d991ce445cad3d71b4f051ad27d027045
parent9861dbd5b4a422ae03a8caa2fa6d2827912aa952
s390/dasd: Remove variable sized array

Dynamic stack allocations are considered bad. Get rid of this one
occurrence and use kstrdup() instead.

Also, set the return codes so that we have only one exit where we can
call kfree().

Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_devmap.c