diff --git a/module/os/linux/zfs/zio_crypt.c b/module/os/linux/zfs/zio_crypt.c index a9043ae4dc..55554d09ee 100644 --- a/module/os/linux/zfs/zio_crypt.c +++ b/module/os/linux/zfs/zio_crypt.c @@ -223,7 +223,7 @@ int zio_crypt_key_init(uint64_t crypt, zio_crypt_key_t *key) { int ret; - crypto_mechanism_t mech; + crypto_mechanism_t mech = {0}; uint_t keydata_len; ASSERT(key != NULL);