Skip to content
Commit 4f1c596d authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Herbert Xu
Browse files

crypto: ccree - Remove debugfs when platform_driver_register failed



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: 4c3f9727 ("crypto: ccree - introduce CryptoCell driver")
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7cdc5e6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment