Commit 30b4c54c authored by Gary R Hook's avatar Gary R Hook Committed by Herbert Xu

crypto: ccp - Release locks before returning

krobot warning: make sure that all error return paths release locks.
Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f2339eb9
...@@ -297,12 +297,11 @@ void ccp5_debugfs_setup(struct ccp_device *ccp) ...@@ -297,12 +297,11 @@ void ccp5_debugfs_setup(struct ccp_device *ccp)
return; return;
write_lock_irqsave(&ccp_debugfs_lock, flags); write_lock_irqsave(&ccp_debugfs_lock, flags);
if (!ccp_debugfs_dir) { if (!ccp_debugfs_dir)
ccp_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL); ccp_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
write_unlock_irqrestore(&ccp_debugfs_lock, flags);
if (!ccp_debugfs_dir) if (!ccp_debugfs_dir)
return; return;
}
write_unlock_irqrestore(&ccp_debugfs_lock, flags);
ccp->debugfs_instance = debugfs_create_dir(ccp->name, ccp_debugfs_dir); ccp->debugfs_instance = debugfs_create_dir(ccp->name, ccp_debugfs_dir);
if (!ccp->debugfs_instance) if (!ccp->debugfs_instance)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment