Skip to content

Commit

Permalink
s: missing-braces
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Jan 22, 2022
1 parent 6923944 commit 5295864
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module/os/linux/zfs/zio_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@ zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key,
uint64_t crypt = key->zk_crypt;
uint_t keydata_len = zio_crypt_table[crypt].ci_keylen;
uint_t enc_len, auth_len;
zfs_uio_t puio = {{0}}, cuio = {{0}};
zfs_uio_t puio, cuio;
uint8_t enc_keydata[MASTER_KEY_MAX_LEN];
crypto_key_t tmp_ckey, *ckey = NULL;
crypto_ctx_template_t tmpl;
Expand Down Expand Up @@ -1950,6 +1950,9 @@ zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key,
/* If the hardware implementation fails fall back to software */
}

memset(&puio, 0, sizeof (puio));
memset(&cuio, 0, sizeof (cuio));

/* create uios for encryption */
ret = zio_crypt_init_uios(encrypt, key->zk_version, ot, plainbuf,
cipherbuf, datalen, byteswap, mac, &puio, &cuio, &enc_len,
Expand Down

0 comments on commit 5295864

Please sign in to comment.