linux/drivers/s390
Julian Wiedmann e7a36d27f6 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: 0da9581ddb ("qeth: exploit asynchronous delivery of storage blocks")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-09 16:14:53 -08:00
..
block for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
char s390 updates for the 5.12 merge window 2021-02-21 13:40:06 -08:00
cio s390/qdio: remove 'merge_pending' mechanism 2021-02-13 17:17:55 +01:00
crypto s390 updates for the 5.12 merge window 2021-02-21 13:40:06 -08:00
net s390/qeth: fix memory leak after failed TX Buffer allocation 2021-03-09 16:14:53 -08:00
scsi scsi: zfcp: Do not set COMMAND_COMPLETE 2021-01-22 21:14:09 -05:00
virtio s390/virtio: remove unused pm callbacks 2020-06-16 13:44:04 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00