aboutsummaryrefslogtreecommitdiff
path: root/module/icp/api/kcf_ctxops.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/icp/api/kcf_ctxops.c')
-rw-r--r--module/icp/api/kcf_ctxops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/icp/api/kcf_ctxops.c b/module/icp/api/kcf_ctxops.c
index 25ed94fe8bdf..b8cd67ea7f67 100644
--- a/module/icp/api/kcf_ctxops.c
+++ b/module/icp/api/kcf_ctxops.c
@@ -6,7 +6,7 @@
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
+ * or https://opensource.org/licenses/CDDL-1.0.
* See the License for the specific language governing permissions
* and limitations under the License.
*
@@ -88,7 +88,7 @@ crypto_create_ctx_template(crypto_mechanism_t *mech, crypto_key_t *key,
if (error != CRYPTO_SUCCESS)
return (error);
- if ((ctx_tmpl = (kcf_ctx_template_t *)kmem_alloc(
+ if ((ctx_tmpl = kmem_alloc(
sizeof (kcf_ctx_template_t), KM_SLEEP)) == NULL) {
KCF_PROV_REFRELE(pd);
return (CRYPTO_HOST_MEMORY);