diff options
author | Andy Shevchenko <[email protected]> | 2023-08-31 13:59:59 +0300 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2023-09-05 20:12:51 +0200 |
commit | 6252f47b78031979ad919f971dc8468b893488bd (patch) | |
tree | ee2bb9eed8abb5aa70ebd897ab1b05be771d0483 /include/net/switchdev.h | |
parent | 08d90f46c7ddff0cbd3fefbddf1d2bd53ce4b477 (diff) |
s390/zcrypt: don't leak memory if dev_set_name() fails
When dev_set_name() fails, zcdn_create() doesn't free the newly
allocated resources. Do it.
Fixes: 00fab2350e6b ("s390/zcrypt: multiple zcrypt device nodes support")
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Harald Freudenberger <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'include/net/switchdev.h')
0 files changed, 0 insertions, 0 deletions