android_kernel_xiaomi_sm8350/drivers/s390/crypto
Andy Shevchenko 6b0cb9c055 s390/zcrypt: don't leak memory if dev_set_name() fails
[ Upstream commit 6252f47b78031979ad919f971dc8468b893488bd ]

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-23 10:59:59 +02:00
..
ap_bus.c treewide: Replace DECLARE_TASKLET() with DECLARE_TASKLET_OLD() 2023-03-11 16:43:42 +01:00
ap_bus.h s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_card.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c
Makefile
pkey_api.c
vfio_ap_drv.c s390/vfio-ap: fix memory leak in vfio_ap device driver 2023-04-05 11:16:44 +02:00
vfio_ap_ops.c
vfio_ap_private.h s390/vfio-ap: No need to disable IRQ after queue reset 2021-02-03 23:25:57 +01:00
zcrypt_api.c
zcrypt_api.h
zcrypt_card.c
zcrypt_cca_key.h
zcrypt_ccamisc.c s390/zcrypt: fix kmalloc 256k failure 2020-09-23 12:40:46 +02:00
zcrypt_ccamisc.h
zcrypt_cex2a.c
zcrypt_cex2a.h
zcrypt_cex2c.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex2c.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cex4.c
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_error.h
zcrypt_msgtype6.c s390/zcrypt: adjust switch fall through comments for -Wimplicit-fallthrough 2019-08-02 13:58:23 +02:00
zcrypt_msgtype6.h
zcrypt_msgtype50.c
zcrypt_msgtype50.h
zcrypt_queue.c