diff options
Diffstat (limited to 'module/icp')
-rw-r--r-- | module/icp/core/kcf_mech_tabs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/icp/core/kcf_mech_tabs.c b/module/icp/core/kcf_mech_tabs.c index 3545f03ee..3ed154758 100644 --- a/module/icp/core/kcf_mech_tabs.c +++ b/module/icp/core/kcf_mech_tabs.c @@ -659,7 +659,9 @@ kcf_remove_mech_provider(char *mech_name, kcf_provider_desc_t *prov_desc) mech_entry->me_sw_prov = NULL; break; default: - break; + /* unexpected crypto_provider_type_t */ + mutex_exit(&mech_entry->me_mutex); + return; } mutex_exit(&mech_entry->me_mutex); |