HomeFreeBSD

Fix gcc uninitialized warning in FreeBSD zio_crypt.c

Description

Fix gcc uninitialized warning in FreeBSD zio_crypt.c

In FreeBSD's zio_do_crypt_data(), ensure that two struct uio
variables are cleared before copying data out of them. This avoids
accessing garbage data, and fixes gcc -Wuninitialized warnings.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Toomas Soome <tsoome@me.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Dimitry Andric <dimitry@andric.com>
Closes #16688

Details

Provenance
dimAuthored on Tue, Oct 29, 7:05 PM
GitHub <noreply@github.com>Committed on Tue, Oct 29, 7:05 PM
Parents
rGc480e06d88e0: Fix gcc unused value warning in FreeBSD simd.h
Branches
Unknown
Tags
Unknown