29 lines
681 B
Diff
29 lines
681 B
Diff
From 21d1a0a1f57487a8d643f45150774b42273a56d5 Mon Sep 17 00:00:00 2001
|
|
From: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
Date: Tue, 23 Jul 2024 19:43:46 +0800
|
|
Subject: [PATCH 06/16] uadk: fix for env uninit segment fault
|
|
|
|
config ctx_config should not be set if init failed.
|
|
|
|
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
Signed-off-by: Qi Tao <taoqi10@huawei.com>
|
|
---
|
|
wd_util.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/wd_util.c b/wd_util.c
|
|
index 99be973..76548c9 100644
|
|
--- a/wd_util.c
|
|
+++ b/wd_util.c
|
|
@@ -1212,6 +1212,7 @@ err_free_ctxs:
|
|
free(ctx_config->ctxs);
|
|
err_free_ctx_config:
|
|
free(ctx_config);
|
|
+ config->ctx_config = NULL;
|
|
return ret;
|
|
}
|
|
|
|
--
|
|
2.25.1
|
|
|