diff options
| author | Julian Wiedmann <[email protected]> | 2021-03-09 16:52:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-10 00:14:53 +0000 |
| commit | e7a36d27f6b9f389e41d8189a8a08919c6835732 (patch) | |
| tree | f683d7bff3e97ef1e83168390f80c9bf92b3647f /scripts/clang-tools/gen_compile_commands.py | |
| parent | Merge branch 'virtio_net-infinite-loop' (diff) | |
| download | kernel-e7a36d27f6b9f389e41d8189a8a08919c6835732.tar.gz kernel-e7a36d27f6b9f389e41d8189a8a08919c6835732.zip | |
s390/qeth: fix memory leak after failed TX Buffer allocation
When qeth_alloc_qdio_queues() fails to allocate one of the buffers that
back an Output Queue, the 'out_freeoutqbufs' path will free all
previously allocated buffers for this queue. But it misses to free the
half-finished queue struct itself.
Move the buffer allocation into qeth_alloc_output_queue(), and deal with
such errors internally.
Fixes: 0da9581ddb0f ("qeth: exploit asynchronous delivery of storage blocks")
Signed-off-by: Julian Wiedmann <[email protected]>
Reviewed-by: Alexandra Winter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
