Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

@@ -9136,12 +9136,10 @@
                         return (error);
         }
 
         /* allocate new object */
         object = kmem_zalloc(sizeof (dprov_object_t), KM_SLEEP);
-        if (object == NULL)
-                return (CRYPTO_HOST_MEMORY);
 
         /* is it a token object? */
         /* check CKA_TOKEN attribute value */
         error = dprov_get_template_attr_boolean(template, nattr,
             DPROV_CKA_TOKEN, &is_token);