diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2022-11-08 16:29:12 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-31 13:32:32 +0100 |
commit | 677f01f396aee868082ebc2eebb5fdb9c6efd493 (patch) | |
tree | 781916fa5aac1838cdf1df90f43d41bfc361bdc5 /crypto | |
parent | 953c81ffe384e770744c33baa898ff31f0299be7 (diff) | |
download | linux-stable-677f01f396aee868082ebc2eebb5fdb9c6efd493.tar.gz linux-stable-677f01f396aee868082ebc2eebb5fdb9c6efd493.tar.bz2 linux-stable-677f01f396aee868082ebc2eebb5fdb9c6efd493.zip |
crypto: ccree - Remove debugfs when platform_driver_register failed
[ Upstream commit 4f1c596df706c9aca662b6c214fad84047ae2a97 ]
When platform_driver_register failed, we need to remove debugfs,
which will caused a resource leak, fix it.
Failed logs as follows:
[ 32.606488] debugfs: Directory 'ccree' with parent '/' already present!
Fixes: 4c3f97276e15 ("crypto: ccree - introduce CryptoCell driver")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions