s390/qeth: use vzalloc for QUERY OAT buffer
authorWenjia Zhang <wenjia@linux.ibm.com>
Wed, 12 Sep 2018 13:31:34 +0000 (15:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 20:12:51 +0000 (13:12 -0700)
commitaec45e857c5538664edb76a60dd452e3265f37d1
treee78da6ce887a4ef5adf394659572c4c81fa33994
parent04db741d0df02fdb9ea4ddca32615153407dcf7f
s390/qeth: use vzalloc for QUERY OAT buffer

qeth_query_oat_command() currently allocates the kernel buffer for
the SIOC_QETH_QUERY_OAT ioctl with kzalloc. So on systems with
fragmented memory, large allocations may fail (eg. the qethqoat tool by
default uses 132KB).

Solve this issue by using vzalloc, backing the allocation with
non-contiguous memory.

Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c