Re: [PATCH] crypto: ccree - Remove debugfs when platform_driver_register failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 08, 2022 at 04:29:12PM +0800, Gaosheng Cui wrote:
> 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@xxxxxxxxxx>
> ---
>  drivers/crypto/ccree/cc_driver.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux