diff options
author | Matthew Macy <[email protected]> | 2019-10-10 09:47:06 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-10 09:47:06 -0700 |
commit | e4f5fa12290016b2f1fd6a5b4c7e5733c788c863 (patch) | |
tree | 51a33853a1161198daf1195ec09da33e9a905392 /module/icp/spi | |
parent | c5858ff9462719be60b2ffb0065dd01508a63162 (diff) |
Fix strdup conflict on other platforms
In the FreeBSD kernel the strdup signature is:
```
char *strdup(const char *__restrict, struct malloc_type *);
```
It's unfortunate that the developers have chosen to change
the signature of libc functions - but it's what I have to
deal with.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9433
Diffstat (limited to 'module/icp/spi')
-rw-r--r-- | module/icp/spi/kcf_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/icp/spi/kcf_spi.c b/module/icp/spi/kcf_spi.c index e438b5810..34b36b81c 100644 --- a/module/icp/spi/kcf_spi.c +++ b/module/icp/spi/kcf_spi.c @@ -261,7 +261,7 @@ crypto_register_provider(crypto_provider_info_t *info, prov_desc->pd_kstat->ks_update = kcf_prov_kstat_update; kstat_install(prov_desc->pd_kstat); } - strfree(ks_name); + kmem_strfree(ks_name); } if (prov_desc->pd_prov_type == CRYPTO_HW_PROVIDER) |