Skip to content

Commit f6ebfd7

Browse files
garyrhookherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e88b27c commit f6ebfd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/crypto/ccp/ccp-crypto-main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,10 @@ static int ccp_crypto_init(void)
405405
int ret;
406406

407407
ret = ccp_present();
408-
if (ret)
408+
if (ret) {
409+
pr_err("Cannot load: there are no available CCPs\n");
409410
return ret;
411+
}
410412

411413
spin_lock_init(&req_queue_lock);
412414
INIT_LIST_HEAD(&req_queue.cmds);

0 commit comments

Comments
 (0)