diff options
author | Anthony Scarpino <Anthony.Scarpino@Sun.COM> | 2010-02-23 13:34:52 -0800 |
---|---|---|
committer | Anthony Scarpino <Anthony.Scarpino@Sun.COM> | 2010-02-23 13:34:52 -0800 |
commit | d3b2efc749bec3b757d5f018cf78c9a09fa29cb3 (patch) | |
tree | 2d3e389ca2be51b8fe1e4aed7072e59681fd52e2 /usr/src/uts/common/crypto/io/md5_mod.c | |
parent | 76fa7285ab719293f713601f68497677a82ce6f9 (diff) | |
download | illumos-gate-d3b2efc749bec3b757d5f018cf78c9a09fa29cb3.tar.gz |
6849769 crypto modules _init: crypto_register_provider() failed during shutdown
6885135 assertion failed: kcf_dh != NULL
6907099 module load/unload errors could be a little less techie and ominous
Diffstat (limited to 'usr/src/uts/common/crypto/io/md5_mod.c')
-rw-r--r-- | usr/src/uts/common/crypto/io/md5_mod.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/usr/src/uts/common/crypto/io/md5_mod.c b/usr/src/uts/common/crypto/io/md5_mod.c index 3e40ddf68c..7c7759dfc5 100644 --- a/usr/src/uts/common/crypto/io/md5_mod.c +++ b/usr/src/uts/common/crypto/io/md5_mod.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -244,14 +244,11 @@ _init(void) return (ret); /* - * Register with KCF. If the registration fails, log an - * error but do not uninstall the module, since the functionality - * provided by misc/md5 should still be available. + * Register with KCF. If the registration fails, do not uninstall the + * module, since the functionality provided by misc/md5 should still be + * available. */ - if ((ret = crypto_register_provider(&md5_prov_info, - &md5_prov_handle)) != CRYPTO_SUCCESS) - cmn_err(CE_WARN, "md5 _init: " - "crypto_register_provider() failed (0x%x)", ret); + (void) crypto_register_provider(&md5_prov_info, &md5_prov_handle); return (0); } @@ -266,11 +263,9 @@ _fini(void) */ if (md5_prov_handle != NULL) { if ((ret = crypto_unregister_provider(md5_prov_handle)) != - CRYPTO_SUCCESS) { - cmn_err(CE_WARN, "md5 _fini: " - "crypto_unregister_provider() failed (0x%x)", ret); - return (EBUSY); - } + CRYPTO_SUCCESS) + return (ret); + md5_prov_handle = NULL; } |