Skip to content

Commit e83cbc9

Browse files
WangYuliopsiff
authored andcommitted
crypto: loongson: Do not dereference sae when it is NULL
Logging a static message instead of sae->type to avoid to dereference sae when it is NULL. Reported-by: GitHub Copilot Link: deepin-community#875 Signed-off-by: WangYuli <wangyuli@uniontech.com>
1 parent c1603ff commit e83cbc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/crypto/loongson/loongson_se_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static void loongson_se_update_irq(struct lsse_crypto *se,
1616
struct se_alg_msg *alg_msg;
1717

1818
if (!sae) {
19-
pr_info("Can not find Alg %d engine!\n", sae->type);
19+
pr_info("Can not find algorithm engine! sae is NULL.\n");
2020
return;
2121
}
2222

0 commit comments

Comments
 (0)