Files
Dinghao Liu fec769b9fd 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>
2023-10-25 12:03:15 +02:00
..
2022-05-11 14:40:57 +02:00
2021-06-28 11:18:28 +02:00
2022-03-27 22:18:39 +02:00
2021-09-07 13:38:42 +02:00
2022-03-27 22:18:39 +02:00
2018-04-10 07:38:59 +02:00
2018-02-05 07:34:52 +01:00
2021-07-21 11:53:42 +02:00
2021-06-07 17:07:01 +02:00