mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
crypto: ccp - Log an error message when ccp-crypto fails to load
If there are no CCP devices on the system, ccp-crypto will not load. Write a message to the system log clarifying the reason for the failure of the modprobe operation Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e88b27c8ea
commit
f6ebfd7826
1 changed files with 3 additions and 1 deletions
|
@ -405,8 +405,10 @@ static int ccp_crypto_init(void)
|
|||
int ret;
|
||||
|
||||
ret = ccp_present();
|
||||
if (ret)
|
||||
if (ret) {
|
||||
pr_err("Cannot load: there are no available CCPs\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
spin_lock_init(&req_queue_lock);
|
||||
INIT_LIST_HEAD(&req_queue.cmds);
|
||||
|
|
Loading…
Reference in a new issue