WSL2-Linux-Kernel/drivers/s390
Qiheng Lin 544a552be0 s390/dasd: Fix potential memleak in dasd_eckd_init()
[ Upstream commit 460e9bed82 ]

`dasd_reserve_req` is allocated before `dasd_vol_info_req`, and it
also needs to be freed before the error returns, just like the other
cases in this function.

Fixes: 9e12e54c7a ("s390/dasd: Handle out-of-space constraint")
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20221208133809.16796-1-linqiheng@huawei.com
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20230210000253.1644903-3-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:04 +01:00
..
block s390/dasd: Fix potential memleak in dasd_eckd_init() 2023-03-10 09:39:04 +01:00
char s390/zcore: fix race when reading from hardware system area 2022-08-17 14:24:10 +02:00
cio s390/cio: fix out-of-bounds access on cio_ignore free 2022-11-10 18:15:33 +01:00
crypto s390/ap: Fix hanging ioctl caused by orphaned replies 2021-11-18 19:17:17 +01:00
net s390/lcs: Fix return type of lcs_start_xmit() 2022-12-31 13:14:41 +01:00
scsi scsi: zfcp: Fix double free of FSF request when qdio send fails 2022-11-26 09:24:47 +01:00
virtio
Makefile