s390/qdio: roll-back after queue allocation error
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 2 Apr 2020 21:30:41 +0000 (23:30 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 28 Apr 2020 11:49:47 +0000 (13:49 +0200)
commit2a7cf35c4056facd35c952e8000519034376eef7
treee830012ff454a9cf367891b4af164eca072b884d
parentedbf3b2a87db6357fba54520c1baf605e08557b3
s390/qdio: roll-back after queue allocation error

When qdio_allocate_qs() fails, have it deal with its previous
allocations.
This way qdio_allocate() doesn't need to clean up afterwards.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/qdio_main.c
drivers/s390/cio/qdio_setup.c