Ensure zio_bad_cksum_t is initialized

This may not strictly be needed but it does keep gcc happy.  We
should keep our eye on this though if the extra bcopy significantly
impacts performance.  It may.
This commit is contained in:
Brian Behlendorf 2010-06-21 21:31:41 -07:00
parent 8a001d8f59
commit 52bb0d8e75
1 changed files with 4 additions and 1 deletions

View File

@ -1638,8 +1638,11 @@ raidz_checksum_verify(zio_t *zio)
{
zio_bad_cksum_t zbc;
raidz_map_t *rm = zio->io_vsd;
int ret;
int ret = zio_checksum_error(zio, &zbc);
bzero(&zbc, sizeof (zio_bad_cksum_t));
ret = zio_checksum_error(zio, &zbc);
if (ret != 0 && zbc.zbc_injected != 0)
rm->rm_ecksuminjected = 1;