linux/drivers/s390
Dinghao Liu a73c8d7169 s390/cio: fix a memleak in css_alloc_subchannel
commit 63e8b94ad1 upstream.

When dma_set_coherent_mask() fails, sch->lock has not been
freed, which is allocated in css_sch_create_locks(), leading
to a memleak.

Fixes: 4520a91a97 ("s390/cio: use dma helpers for setting masks")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Message-Id: <20230921071412.13806-1-dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/linux-s390/bd38baa8-7b9d-4d89-9422-7e943d626d6e@linux.ibm.com/
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-10-25 11:59:03 +02:00
..
block s390/dasd: fix hanging device after request requeue 2023-09-19 12:22:27 +02:00
char s390/zcore: fix race when reading from hardware system area 2022-08-17 14:24:10 +02:00
cio s390/cio: fix a memleak in css_alloc_subchannel 2023-10-25 11:59:03 +02:00
crypto s390/zcrypt: don't leak memory if dev_set_name() fails 2023-09-19 12:22:59 +02:00
net s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 15:13:53 +02:00
scsi scsi: zfcp: Fix a double put in zfcp_port_enqueue() 2023-10-10 21:59:05 +02:00
virtio virtio/s390: get rid of open-coded kvm hypercall 2021-06-28 11:18:28 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00