Projects
Eulaceura:Mainline:GA
libwd
_service:obs_scm:0020-wd_ecc-Fix-wd_ecc_uninit-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0020-wd_ecc-Fix-wd_ecc_uninit-re-entry.patch of Package libwd
From 105fec19d2f5008009504e9e051dc2aec42bd113 Mon Sep 17 00:00:00 2001 From: Zhangfei Gao <zhangfei.gao@linaro.org> Date: Tue, 19 Mar 2024 02:40:09 +0000 Subject: [PATCH 20/44] wd_ecc: Fix wd_ecc_uninit re-entry Check status for the re-entry Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> --- wd_ecc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wd_ecc.c b/wd_ecc.c index 9aa1519..e75bca0 100644 --- a/wd_ecc.c +++ b/wd_ecc.c @@ -190,6 +190,12 @@ out_clear_ctx_config: static int wd_ecc_common_uninit(void) { + enum wd_status status; + + wd_alg_get_init(&wd_ecc_setting.status, &status); + if (status == WD_UNINIT) + return -WD_EINVAL; + /* uninit async request pool */ wd_uninit_async_request_pool(&wd_ecc_setting.pool); -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2