mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: use original description
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -96,19 +96,7 @@ crypto_register_provider(const crypto_provider_info_t *info,
|
||||
prov_desc->pd_prov_handle = info->pi_provider_handle;
|
||||
|
||||
/* copy provider description string */
|
||||
if (info->pi_provider_description != NULL) {
|
||||
/*
|
||||
* pi_provider_descriptor is a string that can contain
|
||||
* up to CRYPTO_PROVIDER_DESCR_MAX_LEN + 1 characters
|
||||
* INCLUDING the terminating null character. A bcopy()
|
||||
* is necessary here as pd_description should not have
|
||||
* a null character. See comments in kcf_alloc_provider_desc()
|
||||
* for details on pd_description field.
|
||||
*/
|
||||
bcopy(info->pi_provider_description, prov_desc->pd_description,
|
||||
MIN(strlen(info->pi_provider_description),
|
||||
(size_t)CRYPTO_PROVIDER_DESCR_MAX_LEN));
|
||||
}
|
||||
prov_desc->pd_description = info->pi_provider_description;
|
||||
|
||||
/* Change from Illumos: the ops vector is persistent. */
|
||||
if (info->pi_provider_type != CRYPTO_LOGICAL_PROVIDER) {
|
||||
|
||||
Reference in New Issue
Block a user