libwd/0123-uadk-misc-cleanup.patch
Younger 5c995b2464 libwd - update some patches
Update some patches for 2203-SP3 only.

Signed-off-by: Yang Shen <shenyang39@huawei.com>
2024-05-24 09:59:01 +08:00

55 lines
1.5 KiB
Diff

From 573c63b7793093adff971089524e78afcc225f91 Mon Sep 17 00:00:00 2001
From: Yang Shen <shenyang39@huawei.com>
Date: Sat, 9 Dec 2023 16:37:10 +0800
Subject: [PATCH 123/123] uadk - misc cleanup
Some cleanup.
Signed-off-by: Yang Shen <shenyang39@huawei.com>
---
wd_dh.c | 3 ++-
wd_rsa.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/wd_dh.c b/wd_dh.c
index 826f40b..0a85543 100644
--- a/wd_dh.c
+++ b/wd_dh.c
@@ -216,12 +216,13 @@ int wd_dh_init2_(char *alg, __u32 sched_type, int task_type, struct wd_ctx_param
/*
* Driver lib file path could set by env param.
- * than open tham by wd_dlopen_drv()
+ * than open them by wd_dlopen_drv()
* default dir in the /root/lib/xxx.so and then dlopen
*/
wd_dh_setting.dlh_list = wd_dlopen_drv(NULL);
if (!wd_dh_setting.dlh_list) {
WD_ERR("failed to open driver lib files!\n");
+ ret = -WD_EINVAL;
goto out_clear_init;
}
diff --git a/wd_rsa.c b/wd_rsa.c
index e23e096..a94fd36 100644
--- a/wd_rsa.c
+++ b/wd_rsa.c
@@ -254,12 +254,13 @@ int wd_rsa_init2_(char *alg, __u32 sched_type, int task_type, struct wd_ctx_para
/*
* Driver lib file path could set by env param.
- * than open tham by wd_dlopen_drv()
+ * than open them by wd_dlopen_drv()
* default dir in the /root/lib/xxx.so and then dlopen
*/
wd_rsa_setting.dlh_list = wd_dlopen_drv(NULL);
if (!wd_rsa_setting.dlh_list) {
WD_ERR("failed to open driver lib files!\n");
+ ret = -WD_EINVAL;
goto out_clear_init;
}
--
2.31.1.windows.1