WSL2-Linux-Kernel/drivers/s390
Andy Shevchenko 131cd74a8e s390/zcrypt: don't leak memory if dev_set_name() fails
[ Upstream commit 6252f47b78 ]

When dev_set_name() fails, zcdn_create() doesn't free the newly
allocated resources. Do it.

Fixes: 00fab2350e ("s390/zcrypt: multiple zcrypt device nodes support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230831110000.24279-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:22:59 +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: unregister device when the only path is gone 2023-06-28 10:29:51 +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: Defer fc_rport blocking until after ADISC response 2023-08-11 15:13:55 +02:00
virtio
Makefile