Commit d5afd6b
s390/qeth: use vzalloc for QUERY OAT buffer
[ Upstream commit aec45e8 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ad29789 commit d5afd6b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
4728 | 4729 | | |
4729 | 4730 | | |
4730 | 4731 | | |
4731 | | - | |
| 4732 | + | |
4732 | 4733 | | |
4733 | 4734 | | |
4734 | 4735 | | |
| |||
4769 | 4770 | | |
4770 | 4771 | | |
4771 | 4772 | | |
4772 | | - | |
| 4773 | + | |
4773 | 4774 | | |
4774 | 4775 | | |
4775 | 4776 | | |
| |||
0 commit comments