mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
s390/zcrypt: don't leak memory if dev_set_name() fails
[ Upstream commit6252f47b78] 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>
This commit is contained in:
parent
ccb048dae8
commit
147d8da33a
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue